getGADM: Get Geographic Adminitrative Unit

getGADMR Documentation

Get Geographic Adminitrative Unit

Description

This function is a wrapper of getData used to import levels in Geographic Administrative Data Maps (GADM).

Usage

getGADM(unit.nm = NULL, 
    level = 2, country = "COL", 
    path = tempdir())

Arguments

unit.nm

character or NULL. Name of an administrative unit (e.g. municipality), or the name of such an unit plus its corresponding higher-level unit (e.g. department/state). If NULL then a list of unit names is printed.

level

numeric. A number between zero and two, indicating any of the levels of administrative subdivisions in GADM (0=country, 1=first administrative subdivision, and 2=second administrative subdivision).

country

character. ISO code specifying a country. Default 'COL'

path

character. Path name indicating where the unit will be stored. Default stores the data in a temporary directory.

Value

SpatialPolygonsDataFrame or character vector of GADM units..

Author(s)

Wilson Lara Henao <wilarhen@gmail.com> [aut, cre], Victor Gutierrez-Velez [aut], Ivan Gonzalez [ctb], Maria C. Londono [ctb]

References

https://gadm.org/

Examples

## Printing municipalities of Colombia:

    ## \donttest{
    ##     muni <- getGADM(NA)
    ##     head(muni)
    ## }


ecochange documentation built on Nov. 1, 2022, 5:07 p.m.