group_levels.default: Group infrequent factor levels

Description Usage Arguments

View source: R/prepare_helpers.R

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

1
2
## Default S3 method:
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


crtests documentation built on May 29, 2017, 11:52 a.m.