df_defactorize {dsmisc} | R Documentation |
df_defactorize
Description
df_defactorize
Usage
df_defactorize(df)
Arguments
df |
a data.frame like object |
Value
returns the same data.frame except that factor columns have been transformed into character columns
Examples
df <-
data.frame(
a = 1:2,
b = factor(c("a", "b")),
c = as.character(letters[3:4]),
stringsAsFactors = FALSE
)
vapply(df, class, "")
df_df <- df_defactorize(df)
vapply(df_df, class, "")
[Package dsmisc version 0.3.3 Index]