Description Usage Arguments Value
expand.dummies
applies, for all factor
variables, an expansion of the variable in wide format
by setting several dummy columns for all possible values of
the variable
1 | expand.dummies(df, labelvar = "sex")
|
df |
Dataframe |
labelvar |
Factor column name that must be excluded from the transformation |
Dataframe with factor variables converted as a set of dummy variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.