subset,factorDesign-method {designr} | R Documentation |
Subset factor designs
Description
Subset factor designs
Usage
subset(x, ...)
Arguments
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 |
Value
Returns a factorDesign
object with a subsetted design matrix
Examples
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")
[Package designr version 0.1.13 Index]