getGAZ | R Documentation |
This function downloads the DIVA-GIS gazetteer data for a country. If the file is already on disk it will not perform the download.
getGAZ(cod, destfolder = "GAZ", unzip = TRUE, ...)
cod |
Three letter ISO code for the country. |
destfolder |
The destination folder |
unzip |
Unzip the downloaded files? Defaults to TRUE |
... |
Options for download.file() |
https://gadm.org/data.html
Andrea Sánchez-Tapia & Sara Mortara
## Not run: getGAZ(cod = "COL", unzip = TRUE) countries <- c("COL", "BRA", "ECU", "PER", "VEN", "BOL") lapply(countries, getGAZ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.