View source: R/gisco-get-units.R
| gisco_get_units | R Documentation |
This function is deprecated. Use:
gisco_get_metadata() (equivalent to mode = "df").
?gisco_get_unitfunctions (equivalent to
mode = "sf")
gisco_get_units(
id_giscoR = c("nuts", "countries", "urban_audit"),
unit = "ES4",
mode = c("sf", "df"),
year = 2016,
epsg = 4326,
cache = TRUE,
update_cache = FALSE,
cache_dir = NULL,
verbose = FALSE,
resolution = 20,
spatialtype = "RG"
)
id_giscoR |
Select the |
unit |
Unit ID to be downloaded. |
mode |
Controls the output of the function. Possible values are |
year |
character string or number. Release year of the file. |
epsg |
character string or number. Projection of the map: 4-digit EPSG code. One of:
|
cache |
logical. Whether to do caching. Default is |
update_cache |
logical. Should the cached file be refreshed?. Default
is |
cache_dir |
character string. A path to a cache directory. See
Caching strategies section in |
verbose |
logical. If |
resolution |
character string or number. Resolution of the geospatial data. One of:
|
spatialtype |
character string. Type of geometry to be returned. Options available are:
|
A sf object on mode = "sf" or a tibble
on mode = "df".
Please check the download and usage provisions on gisco_attributions().
https://gisco-services.ec.europa.eu/distribution/v2/
All the source files are .geojson files.
gisco_get_metadata(), ?gisco_get_unit functions.
# mode df
gisco_get_units("nuts", mode = "df", year = 2016)
# ->
gisco_get_metadata("nuts", year = 2016)
# mode sf for NUTS
gisco_get_units("nuts", unit = "ES111", mode = "sf", year = 2016)
# ->
gisco_get_unit_nuts(unit = "ES111", year = 2016)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.