Description Usage Arguments Value Examples
View source: R/JSONtoDataFrame.R
Given JSON document, this function maps the potentially nested JSON data to one or several data frames. The data extraction algorithm applied in this function is based on the assumption that the JSON document describes either one or several entity types containing a set of observations described by different variables.
1 |
x |
either a string containing JSON or the name of a file containing the JSON |
alignVariables |
logical, indicating whether variables/values should be rearranged in case the raw data was malformed (missing variable names) |
one data frame or a list of several data frames
1 2 | JSON.ex <- system.file("exdata", "microcapital.json", package = "RWebData")
JSONtoDataFrame(JSON.ex, alignVariables=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.