Description Usage Arguments Details Value Examples
Retrieve data from BDL API in JSON format.
1 | get_request(dir, id, filters = NULL, ...)
|
dir |
A directory of the dataset. |
id |
A code name for the dataset of interested. See the table of contents of eurostat datasets for more details. |
filters |
A named list of filters. Names of list objects are bdl
filter names and values are vectors with specified filter values. If |
... |
Other arguments passed on to |
Data to retrieve from
The
BDL Web Services can be specified with filters. If no specific filters
required, it's recommended to use data query like get_data_by_unit_locality
,
than to use get_request
directly.
To use a proxy to connect, a use_proxy
can be
passed to GET
. For example
get_request(id, filters,
config = httr::use_proxy(url, port, username, password))
.
A json raw data.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
json <- get_request(dir = "data/ByVariable", id = "3643")
json <- get_request(dir = "data/ByUnit", id = "023200000000",
filters = list(year = c("2000","2010"),
varId = c("2137","148190")))
json <- get_request(dir = "data/ByVariable", id = "3643",
filters = list(year = c("2000","2010"),
lang = "en"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.