The replacement counterpart to sf_plan(). Declaring the plan is the step
the whole workflow turns on, so it has a named function rather than
assignment into the object's internals.
Examples
item <- sf_item("q1", "How satisfied are you?", type = "numeric")
instr <- sf_instrument("Demo", components = list(item))
sf_plan(instr) <- list(
list(id = "RQ1", research_question = "What is the average?",
family = "descriptive", method = "descriptives",
roles = list(variables = "q1"))
)
length(sf_plan(instr))
#> [1] 1