Skip to contents

Drop unused levels of a factor

Usage

drop_levels(x, ...)

# S3 method for data.frame
drop_levels(x, ...)

# S3 method for fact
drop_levels(x, ...)

# S3 method for factor
drop_levels(x, ...)

Arguments

x

A factor or data.frame

...

Additional arguments passed to methods (not used)

See also