Skip to contents

Tidy wrapper for svy$add_recipe(recipe).

Usage

add_recipe(svy, recipe, bake = lazy_default())

Arguments

svy

Survey object

recipe

A Recipe object

bake

Logical; whether to bake immediately (default: lazy_default())

Value

The Survey object (invisibly), modified in place

Examples

svy <- survey_empty(type = "ech", edition = "2023")
r <- recipe(
  name = "Example", user = "test",
  svy = svy, description = "Example"
)
svy <- add_recipe(svy, r)