GADM_spoly: Get SpatialPolygons of countries at distinct administrative...

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Get SpatialPolygons of countries at distinct administrative levels

Usage

1
GADM_spoly(country_code, boundary_level, keep_data = FALSE)

Arguments

country_code

(character) code of country or countries of interest.

boundary_level

(numeric) level of administrative division to be considered.

keep_data

(logical) whether or not to keep downloaded files. Default = FALSE.

Value

A SpatialPolygonsDataFrame from the GADM database at the level selected. If an error occurs when downloading any of the spatial objects based on country_code, the result is NULL.

Examples

1
map_gadm <- GADM_spoly(country_code = "UY", boundary_level = 0)

rangemap documentation built on Sept. 5, 2021, 5:17 p.m.