Converts a data frame of factors into a dummy matrix (aka Complete Disjunctive Table)
1 | dummify_dataframe(x, labels = TRUE, full = TRUE)
|
x |
data frame with categorical variables as factors |
labels |
should labels for row and columns be included? |
full |
whether all categories are included. When
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.