create_values_table: Create a tibble from the values within section

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

create_values_tableR Documentation

Create a tibble from the values within section

Description

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

Usage

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


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