drop_levels | R Documentation |
Drop unused levels of a factor
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, ...)
x |
A |
... |
Additional arguments passed to methods (not used) |
base::droplevels
Other factors:
as_ordered()
,
char2fact()
,
fact()
,
fact2char()
,
fact_na()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.