koboquest: koboquest: Reading XLSForm questionnaires

Description Details Identifying question types Parsing skiplogic Using Multiple Quesitonnaires

Description

For data collected with kobotoolbox, ODK or similar.

Details

This package lets you load a questionnaire and match it with the data. It then provides three main functionalities:

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.)

Identifying question types

There are functions for groups of types:

And for testing individual types specifically:

Parsing skiplogic

Use question_is_skipped To find out which records of a certain question were skipped

Using Multiple Quesitonnaires

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

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