is.randomFactor | R Documentation |
Check if argument is a design factor (either random or fixed factor), specifically a random factor, a fixed factor or a factor design.
is.randomFactor(fac)
is.fixedFactor(fac)
is.factorDesign(fac)
is.designFactor(fac)
fac |
Object to check. |
TRUE
or FALSE
is.randomFactor()
: Check if argument is a random factor.
is.fixedFactor()
: Check if argument is a fixed factor.
is.factorDesign()
: Check if argument is a factor design.
x <- fixed.factor("factor", c("level1","level2"))
y <- random.factor("factor")
stopifnot(is.fixedFactor(x) && !is.randomFactor(x))
stopifnot(!is.fixedFactor(y) && is.randomFactor(y))
stopifnot(is.designFactor(x) && is.designFactor(y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.