View source: R/statistics-utils.R
get_dummy_code | R Documentation |
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)
Df |
A data frame |
variable |
A categorical variable (e.g. character vector or factor). |
A data frame whose rows provide the dummy code for
each distinct value of variable
.
get_dummy_code(PlantGrowth, group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.