Description Usage Arguments Value Author(s) Examples
View source: R/adjustMissingLevels.r
Adjust for appropriate syntax describing the effects matching the structural formula.
1 | adjustMissingLevels(design.df, str.for)
|
design.df |
a data frame containing the experimental design. Requires
every column be a |
str.for |
a single string of characters containing the structural formula using the Wilkinson-Rogers' syntax. |
A list containing a data frame with the experimental design and a single string of characters containing the structural formula.
Kevin Chang
1 2 3 4 5 6 7 8 9 10 11 | design.df = data.frame( Blk = factor(1:16),
Ani = factor(c( 1,1,2,2,
1,1,2,2,
1,1,2,2,
1,1,2,2)),
Trt = factor(c( 1,2,3,4,
1,2,3,4,
1,2,3,4,
1,2,3,4)), stringsAsFactors = TRUE )
adjustMissingLevels(design.df, str.for = "Ani/Trt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.