dummyCode: Add dummy-coded variables to data frame.

View source: R/encoding.R

dummyCodeR Documentation

Add dummy-coded variables to data frame.

Description

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

Usage

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.


logitr documentation built on Sept. 11, 2024, 6:40 p.m.