Skip to contents

Expands factors into the full factorial and renders the vignette text per cell with literal {factor} substitution. Each rendered vignette is typically paired with one or two items via panel_instrument().

Usage

vignette_design(template, factors)

Arguments

template

Vignette text containing {factor} placeholders.

factors

Named list of level vectors.

Value

A tibble: vignette_id, one column per factor, text.

Examples

vignette_design(
  "A {age} applicant with {experience} experience applies for the job.",
  list(age = c("younger", "older"), experience = c("5 years", "20 years"))
)