qstnr_response_option_codes: Get response option codes

qstnr_response_option_codesR Documentation

Get response option codes

Description

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"

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.

Value

An integer vector.

See Also

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

Examples

fokus:::qstnr_response_option_codes(types = "abstain")

fokus:::qstnr_response_option_codes(types = c("dunno",
                                              "custom",
                                              "abstain"))

zdaarau/fokus documentation built on Dec. 24, 2024, 10:47 p.m.