Learn R Programming

metabolomics (version 0.1.4)

ContrastMatrix: Contrast matrix

Description

Generates a contrast matrix with specified contrasts.

Usage

ContrastMatrix(contrasts, levels)

Arguments

contrasts
A character vector with specified contrasts.
levels
A character vector or a factor with levels in the design matrix.

Value

See Also

makeContrasts.

Examples

Run this code
    ContrastMatrix(contrasts = c("A-B", "B-C"), levels = c("A", "B", "C", "D"))

Run the code above in your browser using DataLab