fp_add_names: Add factor names to a design matrix

fp_add_namesR Documentation

Add factor names to a design matrix

Description

Store factor names in the factorial.plan object, as a list within the factor.names attribute.

Usage

fp_add_names(dm, ...)

Arguments

dm

the design matrix.

...

a set of factors to name, with their respective names, e.g. ⁠A="Temperature", B="Pressure"⁠. If the factor is not in the design matrix factors list, a warning is printed and the factor is skipped.

Value

the design matrix with the named factors.

Examples

fp_design_matrix(3, rep=2) %>%
  fp_add_names(A="Temperature", B="Pressure")

adas.utils documentation built on April 12, 2025, 1:52 a.m.