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 |
lightShp |
Logical. If |
autoAbort |
Logical. Whether to automatically abort the operation and return NULL in case of missing internet connection or server response errors. |
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.2.0 Index]