Skip to contents

Extracts response option codes of the specified type(s) from the raw FOKUS questionnaire data.

Usage

qstnr_response_option_codes(types = all_response_option_types)

Arguments

types

Response option types. One or more of

  • "abstain"

  • "custom"

  • "dunno"

  • "no"

  • "none"

  • "other"

  • "refusal"

  • "unspecific"

  • "yes"

Value

An integer vector.

Details

Note that only codes of recurring response options are returned which are defined under the response_options top-level key in the file data-raw/questionnaire/questionnaire.toml.

See also

Other questionnaire-internal functions: qstnr_item_val(), qstnr_parties()

Examples

fokus:::qstnr_response_option_codes(types = "abstain")
#> [1] 88

fokus:::qstnr_response_option_codes(types = c("dunno",
                                              "custom",
                                              "abstain"))
#> [1] 99 90 88