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: 1.0.0
Depends: R (≥ 3.4)
Imports: cli (≥ 3.4.0), glue, lifecycle, magrittr, rlang (≥ 1.0.0), tibble
Suggests: covr, dplyr, ggplot2, knitr, readr, rmarkdown, testthat (≥ 3.0.0), withr
Published: 2023-01-29
Author: Hadley Wickham [aut, cre], RStudio [cph, fnd]
Maintainer: Hadley Wickham <hadley at rstudio.com>
BugReports: https://github.com/tidyverse/forcats/issues
License: MIT + file LICENSE
URL: https://forcats.tidyverse.org/, https://github.com/tidyverse/forcats
NeedsCompilation: no
Materials: README NEWS
CRAN checks: forcats results

Documentation:

Reference manual: forcats.pdf
Vignettes: Introduction to forcats

Downloads:

Package source: forcats_1.0.0.tar.gz
Windows binaries: r-devel: forcats_1.0.0.zip, r-release: forcats_1.0.0.zip, r-oldrel: forcats_1.0.0.zip
macOS binaries: r-release (arm64): forcats_1.0.0.tgz, r-oldrel (arm64): forcats_1.0.0.tgz, r-release (x86_64): forcats_1.0.0.tgz
Old sources: forcats archive

Reverse dependencies:

Reverse imports: activAnalyzer, adestr, adventr, animalcules, APCalign, aplotExtra, apyramid, autoMrP, BeeBDC, bibliometrix, BindingSiteFinder, BiostatsUHNplus, BREADR, brinton, broom.mixed, bupaR, burnr, calendR, calendRio, CAST, cats, causact, ccostr, CCPlotR, CellaRepertorium, CGPfunctions, cheese, chevron, ChromSCape, clustringr, CMMs, cocktailApp, codebook, CoGAPS, CohortPlat, ComPrAn, CoNI, correlationfunnel, cpsvote, crosstable, dados, DAPAR, datos, DCPO, describedata, DescrTab2, descstat, dfoliatR, DImodelsVis, dunlin, easyalluvial, echoice2, EDCimport, eHDPrep, elaborator, ENMTools, epe4md, EpiForsk, epikit, evalITR, explore, extraChIPs, ezplot, fcaR, fdacluster, fedmatch, fedup, ffp, finalfit, FMAT, forestecology, framecleaner, FRI, fude, funneljoin, gapclosing, gemtc, genogeographer, gfilmm, ggblanket, ggdag, ggfacto, ggplate, ggquickeda, ggseqplot, ggstats, ggstream, ggVennDiagram, glancedata, glmmfields, glmSparseNet, globaltrends, GRaNIE, gtreg, gtsummary, haven, healthyR.ai, healthyR.ts, hermes, HiLDA, injurytools, iNZightTools, iNZightTS, iotables, iraceplot, IRexamples, ISAnalytics, janus, jmastats, kayadata, labNorm, LACE, lactater, lipidr, lmeresampler, madshapR, markovmix, matchmaker, mbRes, MCOE, metabolic, metaconfoundr, microbiomeExplorer, migest, miRetrieve, mlfit, modeltime, modeltime.resample, MOFA2, mpwR, mshap, multinma, naniar, NanoMethViz, NeuroDecodeR, nevada, ngsReports, NMTox, noaastormevents, npcs, OBL, OlinkAnalyze, OlympicRshiny, Omixer, openairmaps, opitools, OutliersO3, palaeoSig, PanomiR, parcats, partition, PEIMAN2, PERK, PieGlyph, play, plot3logit, pollster, prcr, prettyglm, processmapR, processpredictR, protti, psmineR, r4ss, RCT, REDCapDM, RSDA, safetyCharts, SafeVote, sampbias, saros, sccomp, scCustomize, scipub, SCnorm, SEERaBomb, sense, sfcr, ShapleyOutlier, sherlock, SIAmodules, simaerep, simlandr, simplanonym, simplecolors, sitar, smdi, snap, snpAIMeR, soc.ca, stevemisc, suddengains, surveytable, survivalAnalysis, survParamSim, SWTools, tabxplor, teal.modules.general, tern, testcorr, TextForecast, tfrmt, tfrmtbuilder, tidyAML, tidycat, tidycomm, tidync, tidysynth, tidytidbits, tidytlg, tidyverse, timetk, Tplyr, twoxtwo, UCSCXenaShiny, umiAnalyzer, unheadr, unpivotr, visdat, visR, volker, vvshiny, wcde, weed, wrappedtools, xadmix
Reverse suggests: allofus, alone, atrrr, BaseSet, bench, broom.helpers, bruceR, cat2cat, catfun, cfr, constructive, cowplot, csdata, CuratedAtlasQueryR, datplot, densityarea, DisImpact, dm, domir, DSjobtracker, eph, explainer, exuber, ferrn, finalsize, forwards, genekitr, GenomicSuperSignature, ggResidpanel, ggridges, ggsc, gratia, httk, industRial, iNZightPlots, isoorbi, jlmerclusterperm, konfound, lay, learningtower, lvmisc, memes, MicrobiotaProcess, mikropml, mtsta, multifunc, multiverse, naryn, NHSRdatasets, nzelect, ohenery, openintro, outcomerate, pdxTrees, phenopath, pixarfilms, plotly, PPtreeregViz, profiplots, projects, public.ctn0094data, questionr, rar, raw, refdb, robber, robustmatrix, rTPC, SCpubr, simstandard, slendr, sparseMVN, statquotes, summarytools, survivoR, sweep, teal.modules.clinical, tidybayes, tidyEmoji, tidyHeatmap, tidyjson, tidylog, tidypaleo, tidyquant, treeheatr, unusualprofile, vroom, washi, whippr

Linking:

Please use the canonical form https://CRAN.R-project.org/package=forcats to link to this page.