| pxweb_get_data | R Documentation |
Do a GET call to PXWEB API and return a data.frame
pxweb_get_data(
url,
query,
verbose = TRUE,
column.name.type = "text",
variable.value.type = "text"
)
url |
a |
query |
a json string, json file or list object that can be coherced to a |
verbose |
should large queries print out progress. |
column.name.type |
character: should |
variable.value.type |
character: should |
The functions use will do a pxweb_query to a PXWEB url and return a data.frame.
This is a wrapper for the pxweb_get function.
See pxweb_get for mor general usage and pxweb_query for details on PXWEB queries.
## Not run:
url <- "https://api.scb.se/OV0104/v1/doris/sv/ssd/BE/BE0101/BE0101A/BefolkningNy"
query <- file.path(
system.file(package = "pxweb"),
"extdata", "examples", "json_query_example.json"
)
df <- pxweb_get_data(url = url, query = query)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.