fastDummies: Fast Creation of Dummy (Binary) Columns and Rows from Categorical Variables

Creates dummy columns from columns that have categorical variables (character or factor types). You can also specify which columns to make dummies out of, or which columns to ignore. Also creates dummy rows from character, factor, and Date columns. This package provides a significant speed increase from creating dummy variables through model.matrix().

Version: 1.7.3
Depends: R (≥ 2.10)
Imports: data.table, tibble, stringr
Suggests: testthat (≥ 2.1.0), knitr, rmarkdown, covr, spelling
Published: 2023-07-06
DOI: 10.32614/CRAN.package.fastDummies
Author: Jacob Kaplan ORCID iD [aut, cre], Benjamin Schlegel [ctb]
Maintainer: Jacob Kaplan <jkkaplan6 at>
License: MIT + file LICENSE
NeedsCompilation: no
Language: en-US
Materials: NEWS
CRAN checks: fastDummies results


Reference manual: fastDummies.pdf
Vignettes: Making dummy rows with dummy_rows()
Making dummy variables with dummy_cols()


Package source: fastDummies_1.7.3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): fastDummies_1.7.3.tgz, r-oldrel (arm64): fastDummies_1.7.3.tgz, r-release (x86_64): fastDummies_1.7.3.tgz, r-oldrel (x86_64): fastDummies_1.7.3.tgz
Old sources: fastDummies archive

Reverse dependencies:

Reverse imports: bigDM, bnpa, causalweight, cbcTools, ClusterVAR, CMMs, codez, conText, countts, deepdive, DMCFB, drf, framecleaner, fusedMGM, GenMarkov, getspanel, gscaLCA, jenga, MplusAutomation, naive, NeuralSens, nlive, psyntur, RCTrep, ResIN, reslr, RobinCar, scpi, segen, Seurat, smdi, spinner, spooky, TangledFeatures, tetragon, tidycomm, tidyvpc, TSCI
Reverse suggests: dagitty, logitr, multifear, Statsomat


Please use the canonical form to link to this page.