create_table_from_json_file: Create table from JSON file

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

create_table_from_json_fileR Documentation

Create table from JSON file

Description

Convert a JSON file containing submission data to a data frame.

Usage

create_table_from_json_file(filename, data_id, lookup_table, complete = TRUE)

Arguments

filename

Path to JSON file

data_id

Data file handle ID

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.