This function is depreciated. Use fastDummies::dummy_cols() instead.

dummyCode(df, vars)

Arguments

df

A data frame.

vars

The variables in the data frame for which you want to create new dummy coded variables.

Value

A a dataframe with new dummy-coded variables added.