Set the treatment variablesSource:
This function add a special class, called
edbl_trt, of edibble variables.
set_trts( .edibble, ..., .name_repair = c("check_unique", "unique", "universal", "minimal"), .record = TRUE )
An edibble design (
edbl_design), an edibble data frame (
edbl_table) or an object that contains the edibble data frame in the attribute
Either a name-value pair or a series of the names.
Same as the argument in
A logical value. This indicates whether to record this code step. The default is TRUE. It should remain TRUE unless this function is used as a wrapper in other code.
Definition of treatment
The word treatment is sometimes used to refer to one of these variables. When there are more than one treatment variables then this unfortunately confuses whether treatment refers to the variable or the combination of all treatment variables.
Treatment is the whole description of what is applied in an experiment.
Other user-facing functions: