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

View source: R/utils_kobo.R

get_choicesR Documentation

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

Description

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 "_"


gnoblet/impactR documentation built on March 20, 2023, 2:24 a.m.