Quickly create dummy (binary) columns from character and factor type columns in the inputted data (and numeric columns if specified.) This function is useful for statistical analysis when you want binary columns rather than character columns.
Columns you want to create dummy variables from. Very flexible, find in the examples.
logical. Should the output column labeled with the
original column name? Default uses
If no columns provided, will return the original data frame.
This function is inspired by fastDummies package, but provides
simple and precise usage, whereas
fastDummies::dummy_cols provides more
features for statistical usage.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.