fct_collapse() now accepts a
other_level argument, to allow a user-specified
Other level (@gtm19, #194). It now correctly collapses factors when
other_level is not
NULL (#172), and makes
"Other" the last level (#202) (@gtm19, #172 & #202)
fct_lump() has been split up into three new functions:
fct_lump_lowfreq(). (@jonocarroll, #167, #142). All
fct_lump_() functions check their inputs more carefully (@robinson_es, #169)
fct_match() performs validated matching, providing a safer alternative to
f %in% c("x", "y") which silently returns
"y" are not levels of
f (e.g. because of a typo) (#126, @jonocarroll).
fct_relabel() now accepts character input.
All functions that take
... use “tidy” dots: this means that you use can
!!! to splice in a list of values, and trailing empty arguments are automatically removed. Additionally, all other arguments gain a
. prefix in order to avoid unhelpful matching of named arguments (#110).