buildPatterns: Build a matrix with all possible patterns given a number of...

Description Usage Arguments Examples

View source: R/buildPatterns.r

Description

Creates a matrix indicating which groups are put together under each pattern. The number of possible patterns increases very fast as the number of groups increases. This function provides an easy way to compute all possible patterns. The output of this function is usually used for the patterns parameter of the lmFit function.

Usage

1
buildPatterns(groups)

Arguments

groups

Character containing the names of the groups at which samples may belong to. If the output of the function is going to be used in fitGG it must match the group levels specified in the groups parameter that will be given to fitGG.

Examples

1
buildPatterns(groups=c('GroupControl','GroupA','GroupB'))

Bioconductor-mirror/gaga documentation built on June 1, 2017, 9:36 a.m.