model.matrix-experiment-method: Get experiment design model matrix

model.matrix,experiment-methodR Documentation

Get experiment design model matrix

Description

The function extends stats::model.matrix.

Usage

## S4 method for signature 'experiment'
model.matrix(object, design_formula = design(object, as.formula = TRUE))

Arguments

object

an ORFik experiment

design_formula

the experiment design, as formula, subset columns, to change the model.matrix, default: design(object, as.formula = TRUE)

Value

a matrix with design and level attributes

Examples

df <- ORFik.template.experiment()
model.matrix(df)

JokingHero/ORFik documentation built on Dec. 21, 2024, 12:01 a.m.