Downloads spatial data of Peru using Geodetic reference system "WGRS84" and CRS(4326).
Arguments
- geography
A character or a vector with the name of geographical region. An exception is "all" to request all Peru data.
- level
A character: "all" for national level data, "dep" for department level data, and "prov" for provincial level data.
- simplified
A logical TRUE or FALSE, to select data with all districts or a polygon simplified to a higher level.
- showProgress
Logical TRUE or FALSE to display a progress bar during download.
Examples
# \donttest{
# Read specific province
anta <- get_geo_peru(geography = "ANTA",
level = "prov",
simplified = TRUE)
# Read more than one province
df <- get_geo_peru(geography = c("CALCA"),
level = "prov",
simplified = FALSE)
# Read department level data
cusco <- get_geo_peru(geography = "cusco",
level = "dep",
simplified = TRUE)
# }