Description Usage Arguments Value
Like droplevels, but only deletes specified levels. If values are set to these levels, they are converted to NA.
1 | remove_levels(x, levels_to_remove)
|
x |
Factor variable |
levels_to_remove |
Character vector of levels to remove. |
A factor with the specified levels removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.