Learn R Programming

ribiosUtils (version 1.5-6)

assertDesign: Check dimensionality of design matrix

Description

Check dimensionality of design matrix

Usage

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

Run this code
# NOT RUN {
nsample <- 4
design <- matrix(1:20, ncol=5)
assertDesign(nsample, design)

# }

Run the code above in your browser using DataLab