I am struggling with something that is perhaps very simple.
Consider this factor :
> factor(c('a','b','c','d','a','b'))  a b c d a b Levels: a b c d
This factor is already sorted by order of importance.
a is better than
b, and so on. I would like to keep the first 2 top levels, and put the rest in some
other category. Very much like
fct_lump but here the lumping has nothing to do with the frequency (they all appear once).
Can I do that with