powered by
Drop unused levels of a factor
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, ...)
# S3 method for data.frame drop_levels(x, ...)
# S3 method for fact drop_levels(x, ...)
# S3 method for factor drop_levels(x, ...)
A factor or data.frame
factor
data.frame
Additional arguments passed to methods (not used)
base::droplevels
Other factors: as_ordered(), char2fact(), fact(), fact2char(), fact_na()
as_ordered()
char2fact()
fact()
fact2char()
fact_na()