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)

Roleren/ORFik documentation built on Oct. 19, 2024, 7:37 a.m.