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 Dec. 18, 2024, 11:39 p.m.