droplevels-annotated_factor-method: Drop Unused Levels from Factors

Description Usage Arguments See Also

Description

The function droplevels is used to drop unused levels from a factor or, more commonly, from factors in a data.frame. This method preserves meta-data (e.g., label and unit of measurement).

Usage

1
2
3
4
5
## S4 method for signature 'annotated_factor'
droplevels(x, ...)

## S4 method for signature 'annotated_named_factor'
droplevels(x, ...)

Arguments

x

An annotated factor from which to drop unused levels.

...

Further arguments that can be passed, see droplevels for further options.

See Also

droplevels


mariusbarth/annotate4 documentation built on May 7, 2019, 3:14 p.m.