Description Usage Arguments Value
Simplify the levels of an over-leveled factor by combining small levels.
1 |
var |
The factor or character vector to be simplified |
n |
The number of desired levels |
other |
What to replace elements whose counts are not in the top n with |
empty_as_other |
Whether to count empty (ie, "") elements as other |
A factor vector of identical length as var
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.