An R6 class representing a factor in a Plackett-Burman design.
values
A vector containing the levels or values associated with the factor. Default is NA
.
name
A character string specifying the name of the factor. Default is an empty string ``
.
unit
A character string specifying the unit of measurement for the factor. Default is an empty string ``
.
type
A character string specifying the type of the factor, which can be either `numeric`
or `categorical`
. Default is `numeric`
.
.values()
Get and set the values
for the factors in an object of class pbFactor
.
pbFactor$.values(value)
value
New values, If missing value get the values
.
.unit()
Get and set the units
for the factors in an object of class pbFactor
.
pbFactor$.unit(value)
value
New unit, If missing value get the units
.
value
New names, If missing value get the names
.
clone()
The objects of this class are cloneable with this method.
pbFactor$clone(deep = FALSE)
deep
Whether to make a deep clone.