question_is_skipped: Determine if a variables records were skipped in the...

Description Usage Arguments Details Value See Also Examples

View source: R/closure_defaults.R

Description

Uses a loaded kobo questionnaire and a dataset to determine which records have been skipped for a particular variable.

Usage

1
question_is_skipped(data, question.name)

Arguments

data

The dataset as a data.frame in standard kobo format, with the column headers matching the question names.

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)

Details

To use this you must first successfully run load_questionnaire. If for any reason skiplogic could not be determined, it returns FALSE for all records (with a warning).

Value

a logical vector with one value per row in data. TRUE if a record was skipped, FALSE otherwise.

See Also

load_questionnaire should be run first.

Examples

1
2
mydata<-lo
question_is_skipped("kobo_xml_question_name",mydata)

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