AlgDesign (version 1.2.0)

model.matrix.formula: Builds a model matrix

Description

Produces a model matrix using expand.formula()

Usage

# S3 method for formula
model.matrix(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().