Last chance! 50% off unlimited learning
Sale ends in
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)
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.
JSON-stat format response, or path or URL to such a response
whether to use (longer) label
s or (shorter) id
s
whether dimension categories should be factors or character objects
suppress warnings
if (FALSE) {
oecd.canada.url <- "https://json-stat.org/samples/oecd-canada.json"
results <- fromJSONstat(oecd.canada.url)
names(results)
}
Run the code above in your browser using DataLab