Description Usage Arguments Value Examples
as.dummy transforms a categorical variable to a dummy variable.
| 1 | as.dummy(x)
 | 
| x | a vector of categorical values | 
a matrix of dummy variable, where each column represents a category.
| 1 2 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.