<- takeout(menu_split(t1 = 2, t2 = 4, r = 10))
spd examine_recipe(spd)
design("Split-Plot Design | Split-Unit Design") %>%
set_units(mainplot = 20,
subplot = nested_in(mainplot, 4)) %>%
set_trts(trt1 = 2,
trt2 = 4) %>%
allot_trts(trt1 ~ mainplot,
trt2 ~ subplot) %>%
assign_trts("random", seed = 836) %>%
serve_table()