Description Usage Arguments Examples
A helper function that turns a vector of count into factor data. If there are more than 5 levels in the factor, it aggregates those above the fifth level to a single level.
1 | fac_relevel(x, min_levels = 6)
|
x |
a numeric or integer vector. |
max_levels |
offers the option to control the minimum numer of levels in the new factor |
1 | fac_relevel(testdata$extortions)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.