Skip to contents

Get choices from survey name (and paste them if you want!)

Usage

get_choices(survey, choices, col, conc = T, label = F)

Arguments

survey

A survey sheet from Kobo (already split with columns list_name and name present)

choices

A choices sheet from Kobo (with column list_name, label and name)

col

A quoted column name

conc

Should choices be concatenated to column name? Default to TRUE. Can only be used together swith label = F.

label

Should the labels be returned?

Value

A character vector of choices or pasted to col choices with sep "_"