fromJSONstat | R Documentation |
This function takes a JSON-stat format response and returns a data frame or a
list of data frames, with columns for each dimension and one value
column.
fromJSONstat(x, naming = "label", use_factors = FALSE, silent = FALSE)
x |
JSON-stat format response, or path or URL to such a response |
naming |
whether to use (longer) |
use_factors |
whether dimension categories should be factors or character objects |
silent |
suppress warnings |
For responses with class dataset
: A data frame. For responses
with class collection
: An unnamed list of one or more lists or data
frames. For responses with class bundle
: A named list of one or more
data frames.
## Not run:
oecd.canada.url <- "https://json-stat.org/samples/oecd-canada.json"
results <- fromJSONstat(oecd.canada.url)
names(results)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.