load_questionnaire: load_questionnaire

Description Usage Arguments Value

View source: R/load_questionnaire.R

Description

load_questionnaire

Usage

1
2
load_questionnaire(data, questions, choices,
  choices.label.column.to.use = NULL)

Arguments

data

data frame containing the data matching the questionnaire to be loaded.

questions

kobo form question sheet; either as a data frame, or a single character string with the name of a csv file

choices

questions kobo form choices sheet; either as a data frame, or a single character string with the name of a csv file

choices.label.column.to.use

The choices table has (sometimes multiple) columns with labels. They are often called "Label::English" or similar. Here you need to provide the _name of the column_ that you want to use for labels (see example!)

Value

A list containing the original questionnaire questions and choices, the choices matched 1:1 with the data columns, and all functions created by this function relating to the specific questionnaire


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