powered by
This is a utility function mostly for internal use.
fp_name(fp, fct)
A string with the factor full name, if available (must have been added with fp_add_names). If not, it returns fct ditto.
fp_add_names
fct
The factorial plan object
The standard name of the factor as a string (e.g. "A", or "B", etc.)
"A"
"B"
fp_add_names()
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