Get data by unit locality Id from BDL API
Source:R/get_data_by_unit_locality.R
get_data_by_unit_locality.Rd
Retrieve data for a given unit localities from BDL with specified format.
Arguments
- 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
search_unit_localities
orget_unit_localities
to find unit id code.- varId
A vector of variable Id's.Use
search_variables
orget_variables
to find variable id code.- year
A vector of years. If
NULL
(default) returns data for all available years.- type
A type of variables returned, "code" (default), "label"
- lang
A language of returned data, "pl" (default), "en"
- ...
Other arguments passed on to
GET
. For example a proxy parameters, see details.
Details
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))
.