dummy: Dummy Variable Encoding

Description Usage Arguments Value

View source: R/dummy.R

Description

Creates a dummy variable for a column and removes that column from the dataset. Can be used within a dplyr chain.

Usage

1

Arguments

data

A dataframe

col

Character list of the factor column(s) to be transformed into dummy variables.

Value

The dataframe with the new dummy variable columns.


blazickjoe/DataScienceLibrary documentation built on Nov. 5, 2019, 2:26 p.m.