fastDummies v1.0.0

0

Monthly downloads

0th

Percentile

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

Readme

CRAN\_Status\_Badge AppVeyor Build Status Build Status

Overview

The goal of fastDummies is to quickly create dummy variables (columns) and dummy rows. Creating dummy variables is possible through base R or other packages, but this package is much faster than those methods.

Installation

To install this package, use the code
install.packages("fastDummies")


# The development version is available on Github.
# install.packages("devtools")
devtools::install_github("jacobkap/fastDummies")

Usage

library(fastDummies)

There are two functions in this package:

  • dummy_cols() lets you make dummy variables (dummy_columns() is a clone of dummy_cols())
  • dummy_rows() which lets you make dummy rows.

Functions in fastDummies

Name Description
dummy_rows Fast creation of dummy rows
dummy_cols Fast creation of dummy variables
dummy_columns Fast creation of dummy variables
No Results!

Vignettes of fastDummies

Name
making-dummy-rows.Rmd
making-dummy-variables.Rmd
No Results!

Last month downloads

Details

Type Package
License GPL
Encoding UTF-8
LazyData true
URL https://github.com/jacobkap/fastDummies
BugReports https://github.com/jacobkap/fastDummies/issues
RoxygenNote 6.0.1
VignetteBuilder knitr
NeedsCompilation no
Packaged 2018-01-05 21:25:41 UTC; user
Repository CRAN
Date/Publication 2018-01-08 08:47:26 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/fastDummies)](http://www.rdocumentation.org/packages/fastDummies)