expect_rcrds {edibble}R Documentation

Set the expected values for recording variables

Description

Set the expected values for recording variables

Usage

expect_rcrds(.edibble, ...)

Arguments

.edibble

An edibble design (edbl_design), an edibble data frame (edbl_table) or an object that contains the edibble data frame in the attribute design.

...

Name-value pairs with the name belonging to the variable that are plan to be recorded from set_rcrds() and the values are the expected types and values set by helper functions, see ?expect-rcrds.

Value

An edibble design.

See Also

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

Examples

takeout(menu_crd(t = 4, n = 10)) %>%
  set_rcrds(y = unit) %>%
  expect_rcrds(y > 0)

[Package edibble version 0.1.2 Index]