Description Usage Arguments Value Note
Turn a dataframe into a model matrix for caret functions
1 | buildModelMatrix(data, predvars = NULL, keepNA = FALSE)
|
data |
a dataframe that the user would like to convert to a model matrix |
predvars |
a character vector of the names of predictor variables |
keepNA |
behavior with missing values, defaults to FALSE |
A model matrix
Built on the model.matrix
function. Does not produce an
intercept term. Does not drop collinear factor levels.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.