R/design_contrast.R
assertDesignContrast.Rd
Check dimensionality of both design and contrast matrix
assertDesignContrast(nsample, design, contrast)
Integer, number of samples
Design matrix
Contrast matrix
Side effect is used: the function stops if there are errors in the dimensionalities
assertDesign, assertContrast
assertDesign
assertContrast
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)