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').

Version: 0.3.0
Depends: R (≥ 3.1)
Imports: magrittr, rlang, tibble
Suggests: covr, ggplot2, testthat
Published: 2018-02-19
Author: Hadley Wickham [aut, cre], RStudio [cph, fnd]
Maintainer: Hadley Wickham <hadley at>
License: GPL-3
NeedsCompilation: no
Materials: README NEWS
CRAN checks: forcats results


Reference manual: forcats.pdf
Package source: forcats_0.3.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X binaries: r-release: forcats_0.3.0.tgz, r-oldrel: forcats_0.3.0.tgz
Old sources: forcats archive

Reverse dependencies:

Reverse imports: bupaR, coalitions, descriptr, factorMerger, genogeographer, ggdag, haven, iotables, MetamapsDB, naniar, noaastormevents, OutliersO3, processmapR, rfm, SEERaBomb, sjPlot, tidyLPA, tidyverse
Reverse suggests: apaTables, bench, evaluator, forwards, ggridges, glue, konfound, nzelect, questionr, railtrails, sweep, timetk


Please use the canonical form to link to this page.