Description Usage Arguments See Also Examples
Compared to base::droplevels()
, does not drop NA
levels that have values.
1 | fct_drop(f, only)
|
f |
A factor (or character vector). |
only |
A character vector restricting the set of levels to be dropped. If supplied, only levels that have no entries and appear in this vector will be removed. |
fct_expand()
to add additional levels to a factor.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.