forcats: Tools for Working with Categorical Variables (Factors)

Helpers for reordering factor levels (including moving specified levels to front, ordering by first appearance, reversing, and randomly shuffling), and tools for modifying factor levels (including collapsing rare levels into other, 'anonymising', and manually 'recoding').

Package details

AuthorHadley Wickham [aut, cre], RStudio [cph, fnd]
MaintainerHadley Wickham <hadley@rstudio.com>
LicenseMIT + file LICENSE
Version1.0.0
URL https://forcats.tidyverse.org/ https://github.com/tidyverse/forcats
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("forcats")

Try the forcats package in your browser

Any scripts or data that you put into this service are public.

forcats documentation built on Feb. 16, 2023, 8:57 p.m.