design2factor: Transform design matrix to factor

View source: R/utils.R

design2factorR Documentation

Transform design matrix to factor

Description

Transform design matrix to factor

Usage

design2factor(design)

Arguments

design

design matrix

Value

factor

Examples

## Not run: 
design <- matrix(data = c(1, 1, 0, 0, 0, 0, 1, 1),
                 nrow = 4,
                 ncol = 2,
                 dimnames = list(c(paste("sample", 1:4)), c("gr1", "gr2")))
design2factor(design)

## End(Not run)


bkaczkowski/xcore documentation built on Jan. 26, 2024, 6:24 p.m.