dummyCode function

Add dummy-coded variables to data frame.

Add dummy-coded variables to data frame.

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.

Returns

A a dataframe with new dummy-coded variables added.

  • Maintainer: John Helveston
  • License: MIT + file LICENSE
  • Last published: 2024-07-24