assertDesignContrast: Check dimensionality of both design and contrast matrix

Description Usage Arguments Value See Also Examples

View source: R/design_contrast.R

Description

Check dimensionality of both design and contrast matrix

Usage

1
assertDesignContrast(nsample, design, contrast)

Arguments

nsample

Integer, number of samples

design

Design matrix

contrast

Contrast matrix

Value

Side effect is used: the function stops if there are errors in the dimensionalities

See Also

assertDesign, assertContrast

Examples

1
2
3
4
nsample <- 4
design <- matrix(1:20, ncol=5)
contrast <- matrix(c(-1,1,0,0,0, 0,1,0,-1,0), nrow=5)
assertDesignContrast(nsample, design, contrast)

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.