set_trts | R Documentation |
This function add a special class, called edbl_trt
, of edibble variables.
set_trts(
.edibble = design(),
...,
.name_repair = c("check_unique", "unique", "universal", "minimal"),
.record = TRUE
)
.edibble |
An edibble design ( |
... |
Either a name-value pair or a series of the names. |
.name_repair |
Same as the argument in |
.record |
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. |
An edibble design.
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:
allot_trts()
,
allot_units()
,
design()
,
expect_rcrds()
,
export_design()
,
serve_table()
,
set_rcrds()
,
set_units()
design() %>%
set_trts(pesticide = c("A", "B", "C"),
dosage = c(0, 10, 20, 30, 40))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.