Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upfct_lump all with count above/below threshold #142
Comments
This comment has been minimized.
This comment has been minimized.
AshesITR
commented
Nov 17, 2018
That's a good idea. Maybe naming the argument |
This comment has been minimized.
This comment has been minimized.
I think this is a reasonable request, but my main concern is making |
hadley
added
feature
tidy-dev-day 🤓
labels
Jan 4, 2019
This comment has been minimized.
This comment has been minimized.
|
Jan 19, 2019
This was referenced
hadley
closed this
in
#166
Jan 23, 2019
added a commit
that referenced
this issue
Jan 23, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RoyalTS commentedJul 24, 2018
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
.