Description Usage Arguments Value Examples
Takes a data frame as input, checks class of each column and then converts character to factor. The function can also do the reverse - take factor to character
1 | factor_conv(df, rev = F, to.num = F)
|
df |
data frame that needs to be coersed factors |
rev |
data frame that needs to be coersed to characters |
Coersed data.frame
1 2 3 | df <- iris
df <- factor_conv(iris, rev = T)
factor_conv(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.