tidyverse / forcats

🐈🐈🐈🐈: tools for working with categorical variables (factors)
https://forcats.tidyverse.org/
Other
554 stars 126 forks source link

Include example that fct_recode can use quotes for new level #272

Closed lwjohnst86 closed 3 years ago

lwjohnst86 commented 4 years ago

(Since it isn't documented). It isn't clear from the documentation that this is possible, so it can be confusing learning how to recode when your new level has spaces or other characters in it (e.g. -).

hadley commented 3 years ago

This is a general R programming fact, which I'm reluctant to repeat in to many places, so I think it's best to add as a single new example.