response_options | R Documentation |
Returns response options of the specified type and optionally subtype(s) from the raw FOKUS questionnaire data.
response_options(
type = all_response_option_types,
lang = pal::pkg_config_val("lang"),
subtypes = NULL
)
type |
Response option type. One of
|
lang |
Language. One of |
subtypes |
Hierarchical response option subtypes as a character vector, or |
Note that only recurring response options are returned which are defined under the response_options
top-level key in the file
data-raw/questionnaire/questionnaire.toml
.
A character vector.
Other predicate functions:
ballot_title()
,
political_issues()
,
postal_dispatch_way()
fokus:::response_options(type = "abstain",
lang = "de")
fokus:::response_options(type = "abstain",
lang = "de",
subtypes = "election")
fokus:::response_options(type = "abstain",
lang = "de",
subtypes = c("election", "proportional"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.