small2other | R Documentation |
The smallest categories are recoded to "other" or user specified string. The variables is converted to factor if not already.
small2other(
x,
maxLevels = 12,
minFreq = 0,
otherValue = "other",
convertNA = TRUE,
orderLevels = FALSE,
otherLast = FALSE
)
x |
The variable to be recoded. |
maxLevels |
The maximum number of levels after recoding |
minFreq |
The minimal frequency after recoding. |
otherValue |
The name give to the new category |
convertNA |
Should the |
orderLevels |
How should the categories be ordered. Possible values are:
|
otherLast |
Only used if category with |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.