powered by
Function transforms all data frame columns of a specific class into another class.
facToChar ( dataFrame, from = "factor", to = "character")
a data frame
which column class should be transformed?
target column class
Sebastian Weirich
data(mtcars) ### original classes sapply(mtcars, class) mtcars1 <- facToChar(mtcars, from = "numeric", to = "character") sapply(mtcars1, class)
Run the code above in your browser using DataLab