fp_scale: Retrieve the scale of a factor

fp_scaleR Documentation

Retrieve the scale of a factor

Description

This is a utility function mostly for internal use.

Usage

fp_scale(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 vector representing the factor range in scaled units; scales must have been added with fp_add_scale. If scales are not available, the range in coded units is returned (i.e. c(-1,1))

See Also

fp_add_scale()

Examples

df <- fp_design_matrix(2) %>%
  fp_add_names(A="Temperature", B="Pressure") %>%
  fp_add_scale(A=c(20,30), B=c(3, 7))
fp_scale(df, "A")

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