Description Usage Arguments Details Value Examples
View source: R/rem_sparse_cat.R
Remove sparse categories
1 | rem_sparse_cat(x, threshold, label = "(Other)")
|
x |
factor variable |
threshold |
threshold |
label |
label for the new category |
Combines levels with strictly less than threshold
number of observations into a new category. NA are ignored.
factor variable
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.