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

Tests Vignettes
tidyverse

Available Snapshots

This version of forcats can be found in the following snapshots:

Version History