assertDesign: Check dimensionality of design matrix

Description Usage Arguments Value Examples

View source: R/design_contrast.R

Description

Check dimensionality of design matrix

Usage

1
assertDesign(nsample, design)

Arguments

nsample

Integer, number of samples

design

Design matrix

Value

Side effect is used: the function stops if sample size does not equal ncol(matrix)

Examples

1
2
3
nsample <- 4
design <- matrix(1:20, ncol=5)
assertDesign(nsample, design)

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