Description Usage Arguments Value
Takes a vector of categorical values and collapses the vector into the first 'lim' unique values (by volume), and the rest are collapsed to an 'other' category.
1 |
vector |
- The input vector |
lim |
- A numeric limit on the number |
ret |
- The category that all other values are collapsed into. Defaults to 'other'. |
Returns the vector, where all values not in the x top values are replaced with the value for ret.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.