facToChar: Transform columns in a data frame

facToCharR Documentation

Transform columns in a data frame

Description

Function transforms all data frame columns of a specific class into another class.

Usage

facToChar ( dataFrame, from = "factor", to = "character")

Arguments

dataFrame

a data frame

from

which column class should be transformed?

to

target column class

Value

a data frame

Author(s)

Sebastian Weirich

Examples

data(mtcars)
### original classes
sapply(mtcars, class)
mtcars1 <- facToChar(mtcars, from = "numeric", to = "character")
sapply(mtcars1, class)

eatTools documentation built on May 29, 2024, 6:03 a.m.