Uses the user-specified formula to build a model matrix.

getX(object, ...)

# S4 method for formula
getX(object, df, newdf = df)

Arguments

object

object of relevant class (see signature of method)

...

additional argument list that might never be used

df

the data.frame to build the model matrix against.

newdf

the data.frame to create the model matrix for.

Value

a matrix.

Note

getX is intended to be used internally