Learn R Programming

giscoR (version 0.1.1)

gisco_get_lau: Download Geospatial Local Administrative Units Data from GISCO

Description

Downloads a simple feature (sf) object.

Usage

gisco_get_lau(
  year = "2016",
  epsg = "4326",
  update_cache = FALSE,
  cache_dir = NULL,
  country = NULL,
  gisco_id = NULL
)

Arguments

year

Release year. One of "2016", "2017", "2018" or "2019"

epsg

projection of the map: 4-digit EPSG code. One of:

  • "4326" - WGS84

  • "3035" - ETRS89 / ETRS-LAEA

  • "3857" - Pseudo-Mercator

update_cache

a logical whether to update cache.

cache_dir

a path to a cache directory. The directory have to exist. The NULL (default) uses and creates /gisco directory in the temporary directory from tempdir. The directory can also be set with options(gisco_cache_dir = <path>).

country

Optional. A character vector of country codes. See details

gisco_id

Optional. A character vector of GISCO_ID LAU values.

Value

a POLYGON object on sf format.

Details

See https://ec.europa.eu/eurostat/web/nuts/local-administrative-units for more detail about LAUs.

If you experience any problem on download, try to download the file by any other method and set cache_dir = <folder>.

country could be either a vector of country names, a vector of ISO3 country codes or a vector of Eurostat country codes.

See Also

gisco_get_communes

Examples

Run this code
# NOT RUN {
library(sf)

lau <- gisco_get_lau(country = "Belgique")

plot(
  st_geometry(lau),
  col = c("black", "gold", "brown2"),
  border = "grey90"
)

title(
  main = "Local Administrative Units on Belgium (2016)",
  sub = gisco_attributions(copyright = FALSE),
  line = 1,
  cex.sub = 0.8
)
# }

Run the code above in your browser using DataLab