model.matrix.formula | R Documentation |
Produces a model matrix using expand.formula()
## S3 method for class 'formula'
model.matrix(frml,data,...)
frml |
A formula. |
data |
A data.frame |
... |
Additional arguments passed to model.matrix.default() |
This is a method function signaled by a formula as the first argument. It causes the formula to be translated by expand.formula() before calling model.matrix.default().
A matix.
Bob Wheeler bwheelerg@gmail.com
Please cite this program as follows:
Wheeler, R.E. (2004). model.matrix.formula. AlgDesign. The R project for statistical computing https://www.r-project.org/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.