merge_rare_levels {proBatch}R Documentation

Replaces rare levels with other

Description

Replaces levels with a maximal occurrence of 1 with other

Usage

merge_rare_levels(column, rare_thr = 2)

Arguments

column

column of the data whose rare categories need to be merged to "other"

rare_thr

minimal number of times for a category to be represented to be declared as "rare" and converted to "other"

Value

column with rare occurrences replaced by other


[Package proBatch version 1.10.0 Index]