adjustMissingLevels {infoDecompuTE} | R Documentation |
Adjust for appropriate syntax describing the effects matching the structural formula.
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
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")