Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getGADM

Get Geographic Adminitrative Unit


Description

This function is a wrapper of getData used to import levels in Geographic Administrative Departments and Municipalities (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 level of subdivision, and 2=second level of subdivision).

country

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

path

character. Path name indicating where the unit will be stored.Default tempdir().

Value

SpatialPolygonsDataFrame or character vector of GADM units..

Author(s)

Wilson Lara Henao <wilarhen@temple.edu> [aut, cre], Victor Gutierrez-Velez [aut]

References

Examples

## Printing municipalities of Colombia:    

     
         muni <- getGADM()
         head(muni)

ecochange

Integrating Ecological Remote Sensing Data to Derive EBV Metrics

v1.3
GPL-3
Authors
Wilson Lara Henao [aut, cre], Victor Gutierrez-Velez [aut]
Initial release
2020-10-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.