Create a tibble with section name, experiment number, variables, and response values.

create_values_table(data, section, lookup_table, complete = TRUE, exp_num = NA)

Arguments

data

A list containing data from one section of a submission

section

The section name

lookup_table

Dataframe with columns "section", "step", "variable" , and "label" used for user-friendly section and variable display. "step" maps desired "section" names. "label" maps desired "variable" names.

complete

If `TRUE`, will join in all section and variable names that were not provided as part of the submission. If `FALSE`, will only return the data that was present in the JSON file.

exp_num

Numeric experiment number