View source: R/gisco-get-postal-codes.R
| gisco_get_postal_codes | R Documentation |
The postal code point dataset shows the location of postal codes, NUTS codes and the Degree of Urbanisation classification across the EU, EFTA and candidate countries from a variety of sources. Its primary purpose is to create correspondence tables for the NUTS classification (EC) 1059/2003 as part of the Tercet Regulation (EU) 2017/2391.
gisco_get_postal_codes(
year = 2024,
country = NULL,
cache_dir = NULL,
update_cache = FALSE,
verbose = FALSE,
ext = "gpkg"
)
year |
character string or number. Release year of the file. One of \Sexpr[stage=render,results=rd]{giscoR:::db_values("postal_codes", "year",TRUE)}. |
country |
character vector of country codes. It could be either a
vector of country names, a vector of ISO3 country codes or a vector of
Eurostat country codes. See also |
cache_dir |
character string. A path to a cache directory. See
Caching strategies section in |
update_cache |
logical. Should the cached file be refreshed?. Default
is |
verbose |
logical. If |
ext |
character. Extension of the file (default |
A sf object.
The dataset is released under the CC-BY-SA-4.0 licence and requires the following attribution whenever used:
© European Union - GISCO, 2024, postal code point dataset, Licence CC-BY-SA 4.0.
Please check the download and usage provisions on gisco_attributions().
https://gisco-services.ec.europa.eu/distribution/v2/.
Copyright: https://ec.europa.eu/eurostat/web/gisco/geodata/administrative-units.
See gisco_bulk_download() to perform a bulk download of datasets.
Other administrative units datasets:
gisco_get_communes(),
gisco_get_countries()
# Heavy-weight download!
## Not run:
pc_bel <- gisco_get_postal_codes(country = "BE")
if (!is.null(pc_bel)) {
library(ggplot2)
ggplot(pc_bel) +
geom_sf(color = "gold") +
theme_bw() +
labs(
title = "Postcodes of Belgium",
subtitle = "2024",
caption = paste("\u00a9 European Union - GISCO, 2024,",
"postal code point dataset",
"Licence CC-BY-SA 4.0",
sep = "\n"
)
)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.