fact2char {labelr} | R Documentation |
Convert All Factor Variables of a Data Frame to Character Variables
Description
Convenience function to convert all factor variables to character.
Usage
fact2char(data)
f2c(data)
Arguments
data |
a data.frame object. |
Value
a data.frame identical to data, with exception that any factors have been converted to character variables.
Examples
sapply(iris, class)
head(iris)
iris_ch <- fact2char(iris)
sapply(iris_ch, class)
head(iris_ch)
[Package labelr version 0.1.7 Index]