R/mergeSmallFactorLevels.R
mergeSmallFactorLevels.Rd
Merges factor levels that occur only infrequently into combined levels with a higher frequency.
mergeSmallFactorLevels( task, cols = NULL, min.perc = 0.01, new.level = ".merged" )
task | (Task) |
---|---|
cols | (character) Which columns to convert. Default is all factor and character columns. |
min.perc | ( |
new.level | ( |
Task
, where merged levels are combined into a new level of name new.level
.
Other eda_and_preprocess:
capLargeValues()
,
createDummyFeatures()
,
dropFeatures()
,
normalizeFeatures()
,
removeConstantFeatures()
,
summarizeColumns()
,
summarizeLevels()