fact2char | R Documentation |
Convenience function to convert all factor variables to character.
fact2char(data)
f2c(data)
data |
a data.frame object. |
a data.frame identical to data, with exception that any factors have been converted to character variables.
sapply(iris, class)
head(iris)
iris_ch <- fact2char(iris)
sapply(iris_ch, class)
head(iris_ch)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.