adjustMissingLevels: Adjust the Missing Levels

Description Usage Arguments Value Author(s) Examples

View source: R/adjustMissingLevels.r

Description

Adjust for appropriate syntax describing the effects matching the structural formula.

Usage

1
adjustMissingLevels(design.df, str.for)

Arguments

design.df

a data frame containing the experimental design. Requires every column be a factor.

str.for

a single string of characters containing the structural formula using the Wilkinson-Rogers' syntax.

Value

A list containing a data frame with the experimental design and a single string of characters containing the structural formula.

Author(s)

Kevin Chang

Examples

 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)))
 
adjustMissingLevels(design.df, str.for = "Ani/Trt") 

infoDecompuTE documentation built on May 29, 2018, 9:05 a.m.