subset,factorDesign-method {designr} | R Documentation |
Subset factor designs
subset(x, ...)
x |
A factorDesign object |
... |
*subset*: Criteria along which to filter in planned observations / design matrix rows., *select*: Names of factors to keep in the design matrix |
Returns a factorDesign
object with a subsetted design matrix
des <- fixed.factor("Factor1", c("1A","1B")) +
fixed.factor("Factor2", c("2A","2B")) +
random.factor("Subject", c("Factor1"))
subset(des, select = "Subject")
subset(des, Factor1 == "1A" | Factor2 == "2B", "Subject")