Converts variable to character type

Share:

Description

The function basically converts different data types to character

Usage

1
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.

Details

The function basically converts different data types to character

Value

it returns Data frame

Author(s)

Rahul Mehta

References

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

See Also

ident_cat and ident_cont

Examples

1
2
3
4
data(iris)
cat_index=as.vector(0)
cat_index=c(2,3)
d=cat_identifier(iris,cat_index)