set_rcrds {edibble} | R Documentation |
Set records for given unit
Description
This function creates new nodes to edibble graph with the name corresponding to either the intended response that will be measured or a variable to be recorded. Avoid record names staring with a "." as these are reserved for other purposes downstream.
Usage
set_rcrds(
.edibble = NULL,
...,
.name_repair = c("check_unique", "unique", "universal", "minimal"),
.record = TRUE
)
set_rcrds_of(.edibble = NULL, ...)
Arguments
.edibble |
An edibble design ( |
... |
Name-value pair. The value should correspond to a single name of the
unit defined in |
.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. |
Value
An edibble design.
See Also
Other user-facing functions:
allot_trts()
,
allot_units()
,
design()
,
expect_rcrds()
,
export_design()
,
serve_table()
,
set_trts()
,
set_units()
Examples
takeout(menu_crd(t = 4, n = 10)) %>%
set_rcrds(y = unit)
takeout(menu_crd(t = 4, n = 10)) %>%
set_rcrds_of(unit = "y")