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.1
Depends: R (≥ 4.1)
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: 2025年09月25日
Author: Hadley Wickham [aut, cre], Posit Software, PBC ROR ID [cph, fnd]
Maintainer: Hadley Wickham <hadley at posit.co>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: forcats results

Documentation:

Reference manual: forcats.html , forcats.pdf

Downloads:

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

Reverse dependencies:

Reverse imports: activAnalyzer, adepro, adestr, adventr, aihuman, anansi, animalcules, aplotExtra, apyramid, autoMrP, autoslider.core, bartXViz, BeeBDC, bibliometrix, BindingSiteFinder, BiostatsUHNplus, bonsaiforest, BREADR, brinton, broom.mixed, bupaR, burnr, calendR, calendRio, CAST, cats, causact, ccostr, CCPlotR, cheese, chevreulPlot, chevron, ChromSCape, ci, cicalc, cisp, clustringr, CMMs, cocktailApp, CoGAPS, CohortPlat, ComPrAn, ConfidenceEllipse, CoNI, correlationfunnel, cpsvote, crosstable, dados, dataviewR, datos, DCPO, describedata, descstat, dfoliatR, DImodelsVis, dunlin, easyalluvial, EasyCellType, echoice2, EDCimport, eHDPrep, elaborator, ENMTools, epe4md, EpiForsk, epikit, episensr, epitabulate, evalITR, explore, extraChIPs, ezplot, FARS, fcaR, fedmatch, fedup, ffp, finalfit, flowmapper, fluxible, FMAT, forestecology, framecleaner, FRI, fude, funneljoin, gapclosing, gdverse, gemtc, genogeographer, ggblanket, ggdag, ggfacto, ggplate, ggquickeda, ggsegmentedtotalbar, ggseqplot, ggstats, ggsurveillance, ggVennDiagram, glmmfields, glmSparseNet, globaltrends, GRaNIE, GRIN2, gtreg, guideR, haven, healthyR.ai, healthyR.ts, hermes, HiLDA, htrSPRanalysis, ideanet, injurytools, interfacer, iNZightTools, iNZightTS, iotables, iraceplot, IRexamples, ISAnalytics, janus, jmastats, kayadata, labNorm, LACE, lactater, lefser, lipidr, lmeresampler, madshapR, manydist, markovmix, matchmaker, mbRes, MCOE, metabolic, metaconfoundr, MIC, microbiomeExplorer, migest, mlfit, modeltime, MOFA2, mpwR, multinma, naniar, NanoMethViz, NeuroDecodeR, nevada, ngsReports, NMTox, normfluodbf, npcs, OBL, OlinkAnalyze, OlympicRshiny, Omixer, openairmaps, opitools, OutliersO3, palaeoSig, PanomiR, parcats, partition, PEIMAN2, PERK, phylepic, PieGlyph, play, plotor, plotthis, prcr, prettyglm, processmapR, processpredictR, projoint, protti, psmineR, r4ss, RCT, REDCapCAST, REDCapDM, REDCapTidieR, rjaf, robustT2, ROCnGO, RSDA, safetyCharts, SafeVote, sampbias, sampcompR, saros, saros.base, sccomp, scCustomize, scipub, SCnorm, seahtrue, SEERaBomb, sense, sfcr, ShapleyOutlier, sherlock, SIAmodules, simaerep, simlandr, simplanonym, simplecolors, sitar, smdi, snap, snpAIMeR, soc.ca, steppedwedge, stevemisc, suddengains, summarySCI, survParamSim, SWTools, synthpop, sysAgNPs, tabxplor, teal.modules.general, tern, testcorr, TextForecast, tfrmt, tfrmtbuilder, TheseusPlot, tidyAML, tidycat, tidycomm, tidync, tidyplots, tidyrates, tidysynth, tidysynthesis, tidytlg, tidyverse, tidywater, timetk, Tplyr, tsg, twoxtwo, UCSCXenaShiny, umiAnalyzer, UnalR, unheadr, unpivotr, UpAndDownPlots, veesa, visdat, wcde, weed, WMAP, wrappedtools, xadmix, xpose.xtras

Linking:

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

AltStyle によって変換されたページ (->オリジナル) /