dummy_code: Dummy code a data.frame
Description
Dummy code a data.frame
Usage
dummy_code(x, sep = "_", factor_names = TRUE)
Value
A dummy-coded version of x.
Arguments
- x
 
a data.frame
- sep
 
character for separating dummy code factors and their levels
when constructing names
- factor_names
 
whether to include factor names when creating new
names for dummy codes