powered by
All factor levels included
ModelMatrix( formula, data = NULL, mf = model.frame(formula, data = data), allFactor = TRUE, sparse = FALSE, formulaSums = FALSE, printInc = FALSE )
formula
data frame
model frame (alternative input instead of data)
When TRUE all variables are coerced to factor
When TRUE sparse matrix created by sparse.model.matrix()
When TRUE, sparse matrix via FormulaSums()
Printing ... to console when TRUE
...
model matrix created via model.matrix(), sparse.model.matrix() or FormulaSums()
# NOT RUN { z1 <- SmallCountData("z1") ModelMatrix(~region*hovedint,z1) # }
Run the code above in your browser using DataLab