group_levels.default {crtests}R Documentation

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

## 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


[Package crtests version 0.2.1 Index]