Description Details Identifying question types Parsing skiplogic Using Multiple Quesitonnaires
For data collected with kobotoolbox, ODK or similar.
This package lets you load a questionnaire and match it with the data. It then provides three main functionalities:
identifying question types
converting xml style data headers and values to labels
parsing questionnaire skiplogic ('relevant' column in XLSForms.)
A questionnaire (in .csv format) is loaded globally with load_questionnaire
.
All other functions then refer to that questionnaire automatically. (See below on using multiple questionnaires in parallel.)
question_type
is the standard function to determine data types.
There are functions for groups of types:
question_is_categorical
,
question_is_numeric
,
And for testing individual types specifically:
question_is_select_multiple
,
question_is_select_one
,
question_is_sm_choice
,
Use question_is_skipped
To find out which records of a certain question were skipped
If multiple questionnaires need to be used in parallel, you can store the output of link{load_questionniare}
in an object. All other functions in this package are then available relating to that specific questionnaire as a list element of that object.
Example:
1 2 3 4 5 6 7 8 9 10 11 | # load the first questionnaire:
q1<-load_questionnaire(...)
question_is_categorical(...) # global functions now refer to q1
q1$question_is_categorical(...) # always refers to q1
# load the second questionnaire:
q2<-load_quesitonniare(...)
question_is_categorical(...) # global functions now refer to q2
q1$question_is_categorical(...) # always refers to q1
q2$question_is_categorical(...) # always refers to q2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.