Skip to contents

This function adds the edges between factor nodes to describe the high-level relationship between factors. This function does not actually assign edges between level nodes.

Usage

allot_units(.edibble, ..., .record = TRUE)

Arguments

.edibble

An edibble design which should have units, treatments and allotment defined.

...

A two-sided formula.

.record

Whether to record the step.

Value

Return an edibble design.

See also

assign_fcts

Other user-facing functions: allot_trts(), design(), expect_rcrds(), export_design(), serve_table(), set_rcrds(), set_trts(), set_units()

Examples

design() %>%
  set_units(block = 10,
            plot = 20) %>%
  allot_units(block ~ plot)
#> An edibble design
#> └─block (10 levels)
#>   └─plot (20 levels)