get_geo_peru {geoperu} | R Documentation |
Download spatial data of Peru
Description
Downloads spatial data of Peru using Geodetic reference system "WGRS84" and CRS(4326).
Usage
get_geo_peru(
geography = "all",
level = "all",
simplified = TRUE,
showProgress = TRUE
)
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. |
Value
An "sf" "data.frame"
object containing the spatial data of Peru.
Examples
# 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)
[Package geoperu version 0.0.0.2 Index]