Fast Creation of Dummy (Binary) Columns and Rows from Categorical Variables
Overview
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().
- Preserve dplyr groups
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: fastDummies/tests/testthat/test-columns-warnings-errors.R (.Label: 2, .Names: 1) '.Label' should be changed to 'levels'. '.Names' should be changed to 'names'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK14 OK2026-03-10
Documentation
- Help pages
- 3
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 67%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 50%
- Median days to close, 50 most recently updated closed issues
- 21
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commit identities over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/jacobkap/fastdummies on 2026-10-21.
GitHub Pages site last deployed 2026-04-22 · The repository has a site deploy workflow
pkgdown site last built 2026-04-22
Show all practicesHide 1 practice
Dependencies
Installing fastDummies adds 13 packages (9 with compiled code, 21 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, vctrs 1.0 MB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.7.6Latest
- RR 4.5.0 released · 2025-04-11
- 1.7.52025-01-20 · diff ↗
- 1.7.42024-08-16 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.7.32023-07-06 · diff ↗
- 1.7.12023-07-05 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.6.32020-11-29 · diff ↗
- 1.6.22020-09-16 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.6.12020-03-07 · diff ↗
- 1.6.02019-11-29 · diff ↗
Show 13 earlier eventsHide 13 earlier events
Package metadata
- First published
- 2017-04-21
- Total releases
- 18 / 9 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL in 1.4.0
- Minimum R
- ≥ 2.10
- Download size
- 27 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("fastDummies")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.