question_get_question_label: Convert kobo xml question names to labels

Description Usage Arguments Details Value See Also Examples

View source: R/closure_defaults.R

Description

Uses a loaded kobo questionnaire to get the label corresponding to a question xml name / data column headers.

Usage

1

Arguments

question.name

The xml name of a kobo question as a string. (as it appears in the kobo questionnaire and subsequently in the data column headers)

Details

To use this you must first successfully run load_questionnaire. If conversion to label fails, the original input value is returned. This happens in the following cases:

Value

A string with the kobo label of the question / data column header

See Also

load_questionnaire must be run first. The equivalent of this but for choice labels is question_get_choice_labels,

Examples

1
question_get_question_label("a_variable_name")

mabafaba/koboquest documentation built on Aug. 15, 2019, 6:12 p.m.