| modelmatrix | R Documentation |
Extracts model matrix from formula, optionally separating response variables from predictors. Removes intercept column and cleans column names.
modelmatrix(f, data = NULL)
f |
Formula object |
data |
Data frame (optional) |
Model matrix or list of matrices (y and x) if response present
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.