create_section_table: Create table for a section

View source: R/data-gather-clean.R

create_section_tableR Documentation

Create table for a section

Description

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.

Usage

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.


Sage-Bionetworks/stopadforms documentation built on Aug. 31, 2024, 11:53 p.m.