Skip to contents

Make "other questions" log

Usage

make_log_other(.tbl, survey, other, id_col, ...)

Arguments

.tbl

A tibble of data

survey

The survey sheet from Kobo

other

A character vector of the start of all other column names. E.g., other = "other_".

id_col

Survey id, usually uuid

...

Columns to keep in the log, e.g. uuid, enum_id

Value

A log with all "other_cols".

Details

It assumes that a parent question and its children "other" are coded as follows within the kobo tool : e.g., parent_question, other_parent_question.

See also

make_log for a log based on a logical test

make_log_from_check_list() for a log based on many logical tests

make_log_outlier() for a log based on outliers

make_all_logs() for all logs: outliers, others, logical tests

Other functions to make logs: make_all_logs(), make_log_from_check_list(), make_log_outlier(), make_log()