simplify_factor-deprecated: Collapse factor levels into "Other"

simplify_factor-deprecatedR Documentation

Collapse factor levels into "Other"

Description

This function duplicates [forcats::fct_other()]. It is therefore deprecated and should not be used. At present, I need it for compatibility. It will be removed in the future.

Usage

simplify_factor(large_factor, cats, other)

Arguments

large_factor

The existing factor

cats

The levels to keep

other

The name of the new "other"-level

See Also

rNuggets-deprecated


LukasWallrich/rNuggets documentation built on Aug. 26, 2022, 11:03 a.m.