edibble
edibble copied to clipboard
Conditional treatments
design() %>%
set_trts(fertilizer = c("yes", "no"),
amount = conditioned(fertilizer,
"yes" ~ c(10, 20, 30),
"no" ~ 0))