Description Usage Arguments Value
Groups rare levels together, where 'rare' is defined by either minPerc or minCount.
1 2 |
dt |
Dataset to create object on. |
vars |
variables you want to include in the encoding. |
minPerc |
Minimum percentage of the total population required for a group to be considered 'rare'.
For example, if |
minCount |
Can be provided instead of minPerc if you have a better idea of credibility in terms of total
samples required. Levels with counts below this value will be grouped into |
newString |
Value you want to group rare levels together as. |
encodeNA |
If FALSE, NAs will remain NA even if they would have been grouped. If TRUE, NAs will be grouped, but only if they are 'rare'. If they are not rare, NAs will be untouched. |
allowNewLevels |
Similar to frequencyEncode parameter. This groups all new levels in with |
Rare Encoded Object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.