label_select_one: Label select_one question

View source: R/utils_kobo.R

label_select_oneR Documentation

Label select_one question

Description

Label select_one question

Usage

label_select_one(data, survey, choices, id_col, col, return_df = NULL)

Arguments

data

Some kobo data

survey

Some survey sheet, with a split 'type' column, e.g. with split_survey(type). It must have columns 'list_name' and 'name'

choices

The corresponding choices sheet; it must have columns name and label

id_col

The id column; usually uuid

col

The select_one column to labelize

return_df

Default returns the updated dataframe; "id_col" returns a dataframe with col and id_col; and, "vector" returns

Value

A labelled dataframe, sub-dataframe or vector


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