fp_add_names {adas.utils}R 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")

[Package adas.utils version 1.2.0 Index]