Learn R Programming

crtests (version 0.2.1)

group_levels.default: Group infrequent factor levels

Description

The default group_levels does nothing. This is desirable behavior for any structure that is not a list, data.frame or factor: there is no meaningful way apply group_levels to this type of structure.

Usage

"group_levels"(data, maximum_levels = 32)

Arguments

data
A data.frame or factor. In the first case, group_levels is applied to each factor in the data.frame.
maximum_levels
Numeric. The maximum number of levels allowed per factor