Recodes factors with more than maxLevels to characters.

Description

Recodes factors with more than maxLevels to characters.

Usage

1
recodeColumns(df, maxLevels = 20)

Arguments

df

the data frame to recode.

maxLevels

the maximum number of levels a factor can have before being converted to a character.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.