design2group: Infer groups from a design matrix

View source: R/DesignContrast.R

design2groupR Documentation

Infer groups from a design matrix

Description

Infer groups from a design matrix

Usage

design2group(designMatrix)

Arguments

designMatrix

A design matrix

Value

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.

Examples

myDesign <- model.matrix(~gl(3,3))
design2group(myDesign)

bedapub/ribiosExpression documentation built on Sept. 2, 2023, 4:37 a.m.