get_dummy_code.Rd
For each value of a categorical variables, show the binary
code used in a regression model to represent its value.
This is wrapper to the fastDummies::dummy_cols()
function.
get_dummy_code(Df, variable)
A data frame whose rows provide the dummy code for
each distinct value of variable
.
get_dummy_code(PlantGrowth, group)
#> group group_trt1 group_trt2
#> 1 ctrl 0 0
#> 2 trt1 1 0
#> 3 trt2 0 1