Description Usage Arguments Value Examples
In some cases it's easier to not have a reference level for dummy variables. This function will preserve all levels of character and factor variables when using model.matrix.
1 | model_matrix(object, .data)
|
object |
the formula for creating the model |
.data |
a data frame |
a numeric matrix to be used for modeling purposes
1 | head(model_matrix(iris, Petal.Width ~ Petal.Length + Species))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.