Learn R Programming

adas.utils (version 1.3.0)

fp_name: Get the full name for a factor

Description

This is a utility function mostly for internal use.

Usage

fp_name(fp, fct)

Value

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

Arguments

fp

The factorial plan object

fct

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

See Also

fp_add_names()

Examples

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

Run the code above in your browser using DataLab