Description Usage Arguments Value See Also Examples
Determines the kobo question type for a given variable name
1 2 | question_type(variable.name, data = NULL, from.questionnaire = T,
from.data = T)
|
variable.name |
the kobo question name for which the type should be determined. (works on a vector with multiple names) |
data |
the dataset matching the kobo questionnaire. This can be left empty if |
from.questionnaire |
if FALSE, prevent determinining data type from questionnaire. Can not be FALSE if from.data is also FALSE. |
from.data |
if TRUE, allows to determine data type from provided |
a string naming the question type. One of "select_one", "select_multiple" or "numeric".
Should be used after load_questionnaire
, but can work without if data is provided as a fallback.
1 | question_type("question_name_in_loaded_questionnaire")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.