This function add a special class, called edbl_trt, of edibble variables.

set_trts(
.design,
...,
.name_repair = c("check_unique", "unique", "universal", "minimal")
)

## Arguments

... Either a name-value pair or a series of the names. Same as the argument in tibble::tibble().

## 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: allocate_trts(), design-context, expect_rcrds(), export_design(), randomise_trts(), serve_table(), set_rcrds(), set_units(), start_design()

## Examples


start_design() %>%
set_trts(pesticide = c("A", "B", "C"),
dosage = c(0, 10, 20, 30, 40))
#> An edibble design
#> ├─pesticide (3 levels)
#> └─dosage (5 levels)
# you can set treatments to existing edibble
#> 8 8         tea  tea   TRUE