Get_Shapefile {SchoolDataIT}R Documentation

Download the boundaries of NUTS-3 (Provinces) and LAU (Municipalities) Italian administrative units from the ISTAT website

Description

'

Usage

Get_Shapefile(Year, level = "LAU", lightShp = TRUE, autoAbort = FALSE)

Arguments

Year

Numeric value. Reference year for the administrative units.

level

Character. Either "NUTS-3", "Province", "LAU", "Municipality". "LAU" by default

lightShp

Logical. If TRUE, the function downloads a generalised, i.e.less detailed, and lighter version of the shapefiles. TRUE by default.

autoAbort

Logical. Whether to automatically abort the operation and return NULL in case of missing internet connection or server response errors. FALSE by default.

Value

A spatial data frame of class data.frame and sf.

Source

<https://www.istat.it/it/archivio/222527>

Examples



  library(magrittr)


  Prov23_shp <- Get_Shapefile(2023, lightShp = TRUE, level = "NUTS-3", autoAbort = TRUE)
  ggplot2::ggplot() + ggplot2::geom_sf(data = Prov23_shp) +
    ggplot2::ggtitle("Italian provinces in 2023/01/01")
 



[Package SchoolDataIT version 0.1.1 Index]