FunFactorize | R Documentation |
Factorize columns which were not identified as factors
FunFactorize(DataSetName, VariableNames)
DataSetNames |
Name of the dataframe where some columns should be factorized |
Variablenames |
string vector, Name of the columns to be factorized |
Dataframe with factorized columns
df <- data.frame(x = 1:10, y = letters[1:10])
str(df)
df$y <- as.character(df$y)
str(df)
str(FunFactorize(df, "y"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.