View source: R/DesignContrast.R
design2group | R Documentation |
Infer groups from a design matrix
design2group(designMatrix)
designMatrix |
A design matrix |
A factor vector giving the groups inferred from the design matrix
A naive logic is used: samples of the same design vectors are of the same group.
The inference is known to fail when control variables, such as age or RIN numbers, vary between samples of the same group.
myDesign <- model.matrix(~gl(3,3))
design2group(myDesign)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.