map_response_options: Map multiple-choice options in a responses table to their...

View source: R/process_responses.R

map_response_optionsR Documentation

Map multiple-choice options in a responses table to their values.

Description

Extract a look-up table for the multiple-choice questions in the set and then use it to map response options to the values. The table is comprised of the lrn_question_reference and ⁠lrn_option_<option numbers>⁠ columns, and it is added to the resulting responses table as the option_value_table attribute.

Usage

map_response_options(responses)

Arguments

responses

A CourseKata responses table (e.g. from responses.csv).

Value

A responses table as a tibble with the look-up table added as the option_value_table attribute and the response column altered by mapping the responses using the table.

See Also

process_responses


UCLATALL/CourseKataData documentation built on Dec. 4, 2023, 2:25 a.m.