Hi all
I am looking for a recipes::step_* function, which allows me to collapse manually specified factor levels into a single level, just like forcats::fct_collapse. Recipes::step_other is the closest I have come to finding such a function, however, rather than collapsing by frequency of occurrence, I would like to collapse manually specified levels based on domain knowledge.
Thanks in advance!
EDIT: using step_mutate() with fct_collapse seems to work well