Create table for a section of a submission. Some sections contain multiple experiments nested within them; if this is the case, they will be unnested and given an experiment number.

create_section_table(data, section, lookup_table, complete = TRUE)

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.