Description Usage Arguments Value
View source: R/load_questionnaire.R
load_questionnaire
1 2 | load_questionnaire(data, questions, choices,
choices.label.column.to.use = NULL)
|
data |
data frame containing the data matching the questionnaire to be loaded. |
questions |
kobo form question sheet; either as a data frame, or a single character string with the name of a csv file |
choices |
questions kobo form choices sheet; either as a data frame, or a single character string with the name of a csv file |
choices.label.column.to.use |
The choices table has (sometimes multiple) columns with labels. They are often called "Label::English" or similar. Here you need to provide the _name of the column_ that you want to use for labels (see example!) |
A list containing the original questionnaire questions and choices, the choices matched 1:1 with the data columns, and all functions created by this function relating to the specific questionnaire
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.