You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would like if threshold argument within step_other() could be specified by an integer (rather than just by proportion), or had a separate n argument to specify the minimum sample size before it is collapsed into the "other" category.
E.g. to specify minimum sample size of 30:
I'm curious what the best way of doing this is currently? (Link to hack for specifying consistent sample size to step_other across datasets of different sizes.)
The text was updated successfully, but these errors were encountered:
Using a step_mutate() with forcats::fct_lump_min() it seems would accomplish this. Though is there a way to apply step_mutate() over all_nominal(), in the way one might with mutate_if()/_at()/_all() ?
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue.
Would like if
threshold
argument withinstep_other()
could be specified by an integer (rather than just by proportion), or had a separaten
argument to specify the minimum sample size before it is collapsed into the "other" category.E.g. to specify minimum sample size of 30:
I'm curious what the best way of doing this is currently? (Link to hack for specifying consistent sample size to
step_other
across datasets of different sizes.)The text was updated successfully, but these errors were encountered: