FunFactorize: Factorize columns

View source: R/FunFactorize.R

FunFactorizeR Documentation

Factorize columns

Description

Factorize columns which were not identified as factors

Usage

FunFactorize(DataSetName, VariableNames)

Arguments

DataSetNames

Name of the dataframe where some columns should be factorized

Variablenames

string vector, Name of the columns to be factorized

Value

Dataframe with factorized columns

Examples

df <- data.frame(x = 1:10, y = letters[1:10])
str(df)
df$y <- as.character(df$y)
str(df)
str(FunFactorize(df, "y"))

retodomax/FunRZ documentation built on Sept. 4, 2024, 9:56 a.m.