powered by
Convenience function to convert all factor variables to character.
fact2char(data)f2c(data)
f2c(data)
a data.frame identical to data, with exception that any factors have been converted to character variables.
a data.frame object.
sapply(iris, class) head(iris) iris_ch <- fact2char(iris) sapply(iris_ch, class) head(iris_ch)
Run the code above in your browser using DataLab