form_to_df: Converts formhub form.json format to dataframe format....

Description Usage Arguments Value Examples

View source: R/formhub.R

Description

Converts formhub form.json format to dataframe format. Dataframe has name, type, label columns.

Usage

1
form_to_df(formJSON, keepGroupNames = TRUE)

Arguments

formJSON

formJSON that has been freshly read from JSON using JSONIO's fromJSON function.

keepGroupNames

for a question with name foo in group bar, keepGroupName=T will generate a name foo.bar, while keepGroupName=F will generate a name bar

Value

formDF

Examples

1
good_eats_form_df <- form_to_df(fromJSON("~/Downloads/good_eats.json"))

prabhasp/formhub.R documentation built on May 25, 2019, 11:25 a.m.