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

Tests Vignettes

Available Snapshots

This version of fastDummies can be found in the following snapshots:

Dependencies

Imports/Depends/LinkingTo/Enhances (4)
  • R
  • data.table
  • tibble
  • stringr
  • Suggests (5)
  • testthat >= 2.1.0
  • knitr
  • rmarkdown
  • covr
  • spelling
  • Version History