assertContrast: Check dimensionality of contrast matrix

Description Usage Arguments Value Examples

View source: R/design_contrast.R

Description

Check dimensionality of contrast matrix

Usage

1
assertContrast(design, contrast)

Arguments

design

Design matrix

contrast

Contrast matrix

Value

Side effect is used: the function stops if the ncol(design) does not equal nrow(contrast)

Examples

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

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