Description Usage Arguments Details Value See Also Examples
View source: R/closure_defaults.R
Uses a loaded kobo questionnaire to get the label corresponding to a question xml name / data column headers.
1 | question_get_question_label(question.name)
|
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) |
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:
No questionnaire has been loaded with load_questionnaire
question.name
could not be found in the questionnaire, or in the data that was supplied to load_questionnaire
A string with the kobo label of the question / data column header
load_questionnaire
must be run first. The equivalent of this but for choice labels is question_get_choice_labels
,
1 | question_get_question_label("a_variable_name")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.