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
It would be great if fct_lump() had an additional mode that lumped factor levels not based on the final number of factor levels desired (n) or the proportion of the data that accrues to the level (prop) but based on the raw count for the level (call it count?).
I think this is a reasonable request, but my main concern is making fct_lump() too complicated. It might be time to start spinning out fct_lump_prop() etc.
It would be great if
fct_lump()
had an additional mode that lumped factor levels not based on the final number of factor levels desired (n
) or the proportion of the data that accrues to the level (prop
) but based on the raw count for the level (call itcount
?).Stealing the example data from #43:
Desired behavior:
forcats::fct_lump(exp_factor, count = 1)
would retain only the factor levels1:5
andOther
.The text was updated successfully, but these errors were encountered: