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 El Capitan binaries: r-release: forcats_0.3.0.tgz
OS X Mavericks binaries: r-oldrel: forcats_0.2.0.tgz
Old sources: forcats archive

Reverse dependencies:

Reverse imports: bupaR, coalitions, descriptr, factorMerger, genogeographer, haven, iotables, MetamapsDB, naniar, noaastormevents, OutliersO3, processmapR, sjPlot, tidyLPA, tidyverse
Reverse suggests: evaluator, forwards, ggjoy, ggridges, glue, nzelect, questionr, railtrails, sweep, tidyquant, timetk


Please use the canonical form to link to this page.