Skip to contents

This function returns a dataframe containing 'select_one' questions from the tool dataframe with their corresponding choices in the choices dataframe.

Usage

create_formatted_choices(choices, tool)

Arguments

choices

A dataframe containing the choices sheet from the Kobo tool Expected to have at least the columns list_name and name.

tool

A dataframe containing the survey sheet from the Kobo tool Expected to have at least the columns type and name.

Value

A dataframe containing 'select_one' questions with their corresponding choices. The dataframe has columns from both the tool and choices dataframes.

Examples

# formatted_choices <- create_formatted_choices(choices, tool)