fp_name: Get the full name for a factor

fp_nameR Documentation

Get the full name for a factor

Description

This is a utility function mostly for internal use.

Usage

fp_name(fp, fct)

Arguments

fp

The factorial plan object

fct

The standard name of the factor as a string (e.g. "A", or "B", etc.)

Value

A string with the factor full name, if available (must have been added with fp_add_names). If not, it returns fct ditto.

See Also

fp_add_names()

Examples

df <- fp_design_matrix(2) %>%
  fp_add_names(A="Temperature", B="Pressure")
fp_name(df, "A")

adas.utils documentation built on Nov. 15, 2025, 1:08 a.m.