adjustMissingLevels {infoDecompuTE}R Documentation

Adjust the Missing Levels

Description

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

Usage

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


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") 


[Package infoDecompuTE version 0.6.2 Index]