Learn R Programming

edibble (version 1.1.0)

crossed_by: Specify the units to cross to index a new unit

Description

crossed_by(A, B) is the same as ~A:B but crossed_by offers more control over the names of the new units as well as adding new attributes.

Usage

crossed_by(..., attrs = NULL)

Value

An object of class "cross_lvls".

Arguments

...

a sequence of units

attrs

Currently not implemented.

Examples

Run this code
design("Strip-Plot Design | Strip-Unit Design") %>%
  set_units(block = 3,
            row = nested_in(block, 7),
            col = nested_in(block, 6),
            unit = nested_in(block, crossed_by(row, col)))

Run the code above in your browser using DataLab