main_section_column: Get a table with main section as column

Description Usage Arguments Value

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

Description

Get a table with the main section as a separate column. This assumes the data is the unlisted data with variables that are separated by periods. It takes the first string before the period and puts it in a new column, 'section', and puts the rest of the variable string in a 'variable' column.

Usage

1

Arguments

data

The dataframe or tibble with the 'variables' column, where each variable is a string separated by periods. The first string before the period is assumed to indicate the main section.

Value

A dataframe or tibble where the 'variables' have been broken into two columns, 'section' and 'variable'.


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