FactorToIndicators | R Documentation |
FactorToIndicators
Convert a factor variable to a matrix whose columns are binary variables representing one of the levels from the factor variable.
FactorToIndicators(variable, name = NULL)
variable |
The factor variable to convert. |
name |
The name of the input variable. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.