Learn R Programming

RDIDQ (version 1.0)

cat_identifier: Converts variable to character type

Description

The function basically converts different data types to character

Usage

cat_identifier(data, cat_index)

Arguments

data
data :main dataset
cat_index
cat_index: its a vector containing the position of all variables that are to be converted to character type.

Value

it returns Data frame

Details

The function basically converts different data types to character

References

http://en.wikipedia.org/wiki/Categorical_variable

See Also

ident_cat and ident_cont

Examples

Run this code
data(iris)
cat_index=as.vector(0)
cat_index=c(2,3)
d=cat_identifier(iris,cat_index)

Run the code above in your browser using DataLab