ezr.get_dummies_all: Make all categorical columns one-hot-encoded

Description Usage Arguments Value Examples

Description

Convience wrapper for running get dummies on an entire dataset. Useful when trying to understand the various breakdowns

Usage

1
2
ezr.get_dummies_all(dataset, exclude_cols = NULL,
  convert_to_factor = FALSE)

Arguments

dataset

a dataframe

exclude_cols

What columns should this not apply to?

convert_to_factor

Should the new columns be converted to factor columns or stay as numeric 0s and 1s

Value

Returns adjusted dataframe

Examples

1

jmp1989/easyr documentation built on May 20, 2019, 7:25 a.m.