df_typecast_all {tatoo} | R Documentation |
Typecast all columns of a data.frame of a specific type
Description
Bulk convert columns of a data.frame that share a certain class to a different class. Use with care, will introduce NAs for some conversion attempts
Usage
df_typecast_all(dat, from = "factor", to = "character")
Arguments
dat |
a data.frame |
from |
column type to cast |
to |
target column type |
Value
a data frame with all columns of class from converted to class to
[Package tatoo version 1.1.2 Index]