nobs,factorDesign-method {designr} | R Documentation |
Retrieve the number of observations
Description
Retrieve the number of observations
Usage
## S4 method for signature 'factorDesign'
nobs(object)
Arguments
object |
A designFactor object |
Value
The number of observations
Examples
des <- fixed.factor("Factor1", c("1A","1B")) +
fixed.factor("Factor2", c("2A","2B")) +
random.factor("Subject", c("Factor1"))
nobs(des)
stopifnot(nobs(des) == 4)
[Package designr version 0.1.13 Index]