View source: R/get_data_by_unit_locality.R
get_data_by_unit_locality | R Documentation |
Retrieve data for a given unit localities from BDL with specified format.
get_data_by_unit_locality( unitId, varId, year = NULL, type = c("code", "label"), lang = c("pl", "en"), ... )
unitId |
A 12 character NUTS unit locality id with 7 characters locality individual id,
separated by dash or vector of multiple unit id codes. If multiple unit codes are used,
some columns are not available. Use |
varId |
A vector of variable Id's.Use |
year |
A vector of years. If |
type |
A type of variables returned, "code" (default), "label" |
lang |
A language of returned data, "pl" (default), "en" |
... |
Other arguments passed on to |
Data to retrieve from
The
BDL Web Services can be filtered with arguments. To get JSON data from specified
directory with custom filters 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 dataset as a tibble.
# get_data_by_unit_locality(unitId = "030210106062-0189782", varId = "415", type = "label") # Multi variable download # get_data_by_unit_locality(unitId = c("030210106062-0189782", "030210106062-0189753"), # varId = "415")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.