convert_all_forms_to_table: Convert all json file data to single table

Description Usage Arguments Value

View source: R/convert-json-to-table.R

Description

Reads all the files given (or in 'directory') and gathers the data into a single table by variable, where the variable is the unlisted json form variable.

Usage

1
convert_all_forms_to_table(file_list = NULL, directory = NULL)

Arguments

file_list

A named or unnamed list of files. If 'NULL', will gather list of files from 'output_dir'. If named, the names will be the column names for the submissions; otherwise the names will be generic rubbish.

directory

The directory with the JSON files. If 'NULL', then 'file_list' is used.

Value

A table with the column 'variables' that corresponds to all variable names across all JSON files, and each file's values are listed in a column of the table. The column names are either a generic name or the name assigned to the file in file_list. Will return 'NULL' if both 'file_list' and 'directory' are 'NULL',


Sage-Bionetworks/synapseforms documentation built on June 16, 2020, 8:35 a.m.