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

AuthorHadley Wickham [aut, cre], RStudio [cph, fnd]
Date of publication2017-01-23 16:39:48
MaintainerHadley Wickham <hadley@rstudio.com>
LicenseGPL-3
Version0.2.0
http://forcats.tidyverse.org
https://github.com/tidyverse/forcats

View on CRAN

Functions

\%>\% Man page
as_factor Man page
as_factor.character Man page
as_factor.factor Man page
fct_anon Man page
fct_c Man page
fct_collapse Man page
fct_count Man page
fct_drop Man page
fct_expand Man page
fct_explicit_na Man page
fct_infreq Man page
fct_inorder Man page
fct_lump Man page
fct_other Man page
fct_recode Man page
fct_relabel Man page
fct_relevel Man page
fct_reorder Man page
fct_reorder2 Man page
fct_rev Man page
fct_shift Man page
fct_shuffle Man page
fct_unify Man page
fct_unique Man page
forcats Man page
forcats-package Man page
gss_cat Man page
lvls Man page
lvls_expand Man page
lvls_reorder Man page
lvls_revalue Man page
lvls_union Man page

Files

forcats
forcats/tests
forcats/tests/testthat.R
forcats/tests/testthat
forcats/tests/testthat/helper-lump.R
forcats/tests/testthat/test-fct_c.R
forcats/tests/testthat/test-fct_lump.R
forcats/tests/testthat/test-as_factor.R
forcats/tests/testthat/test-fct_relabel.R
forcats/tests/testthat/test-fct_reorder.R
forcats/tests/testthat/test-fct_drop.R
forcats/tests/testthat/test-lvls_reorder.R
forcats/tests/testthat/test-lvls.R
forcats/tests/testthat/test-fct_other.R
forcats/tests/testthat/test-fct_recode.R
forcats/tests/testthat/test-fct_relevel.R
forcats/NAMESPACE
forcats/NEWS.md
forcats/data
forcats/data/gss_cat.rda
forcats/R
forcats/R/relevel.R forcats/R/shift.R forcats/R/reorder.R forcats/R/utils.R forcats/R/drop.R forcats/R/count.R forcats/R/relabel.R forcats/R/c.R forcats/R/forcats-package.R forcats/R/shuffle.R forcats/R/as_factor.R forcats/R/data.R forcats/R/lump.R forcats/R/recode.R forcats/R/unique.R forcats/R/rev.R forcats/R/lvls.R forcats/R/expand.R forcats/R/collapse.R forcats/R/explicit_na.R forcats/R/anon.R forcats/R/other.R
forcats/README.md
forcats/MD5
forcats/DESCRIPTION
forcats/man
forcats/man/pipe.Rd forcats/man/fct_count.Rd forcats/man/fct_relevel.Rd forcats/man/fct_other.Rd forcats/man/fct_collapse.Rd forcats/man/fct_recode.Rd forcats/man/gss_cat.Rd forcats/man/lvls.Rd forcats/man/fct_drop.Rd forcats/man/fct_reorder.Rd forcats/man/forcats-package.Rd forcats/man/lvls_union.Rd forcats/man/fct_unify.Rd forcats/man/as_factor.Rd forcats/man/fct_rev.Rd forcats/man/fct_expand.Rd forcats/man/fct_anon.Rd forcats/man/fct_unique.Rd forcats/man/fct_shuffle.Rd forcats/man/fct_relabel.Rd forcats/man/fct_shift.Rd forcats/man/fct_inorder.Rd forcats/man/fct_c.Rd forcats/man/fct_explicit_na.Rd forcats/man/fct_lump.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.