getGAZ: Function to download DIVA-GIS gazetteer data for a country

View source: R/getGAZ.R

getGAZR Documentation

Function to download DIVA-GIS gazetteer data for a country

Description

This function downloads the DIVA-GIS gazetteer data for a country. If the file is already on disk it will not perform the download.

Usage

getGAZ(cod, destfolder = "GAZ", unzip = TRUE, ...)

Arguments

cod

Three letter ISO code for the country.

destfolder

The destination folder

unzip

Unzip the downloaded files? Defaults to TRUE

...

Options for download.file()

Details

https://gadm.org/data.html

Author(s)

Andrea Sánchez-Tapia & Sara Mortara

Examples

## Not run: 
getGAZ(cod = "COL", unzip = TRUE)
countries <- c("COL", "BRA", "ECU", "PER", "VEN", "BOL")
lapply(countries, getGAZ)

## End(Not run)


saramortara/rocc documentation built on April 3, 2022, 3:41 p.m.