Rdocumentation
powered by
Learn R Programming
AlgDesign (version 1.0-10)
model.matrix.formula: Builds a model matrix
Description
Produces a model matrix using expand.formula()
Usage
model.matrix.formula(frml,data,...)
Arguments
frml
A formula.
data
A data.frame
...
Additional arguments passed to model.matrix.default()
Value
A matix.
Details
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().