Drop unused levels of a factor
Usage
drop_levels(x, ...)
# S3 method for class 'data.frame'
drop_levels(x, ...)
# S3 method for class 'fact'
drop_levels(x, ...)
# S3 method for class 'factor'
drop_levels(x, ...)
See also
Other factors:
as_ordered()
,
char2fact()
,
fact()
,
fact2char()
,
fact_na()