makeDmatrix: Make sparse matrix of dummies from factor list
Description
Given a list of factors, return the matrix of dummies as a sparse matrix.
Usage
makeDmatrix(fl, weights = NULL)
Value
Returns a sparse matrix.
Arguments
fl
list of factors.
weights
numeric vector. Multiplied into the rows.
Details
The function returns the model matrix for a list of factors. This matrix is
not used internally by the package, but it's used in some of the
documentation for illustrative purposes.