dnldGADMCtrySpRds: Download a country's polygon RDS files from <URL:...

Description Usage Arguments Value Examples

View source: R/polygons.R

Description

Download a country's polygon RDS files from http://gadm.org and combine them into one RDS to match other polygon downloads

Usage

1
2
3
4
5
6
dnldGADMCtrySpRds(
  ctryCode,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"),
  downloadMethod = pkgOptions("downloadMethod")
)

Arguments

ctryCode

The ISO3 ctryCode of the country polygon to download

gadmVersion

The GADM version to use

gadmPolyType

The format of polygons to download from GADM

downloadMethod

The method used to download polygons

Value

TRUE/FALSE Success/Failure of the download

Examples

1
2
3
4
## Not run: 
Rnightlights:::dnldGADMCtrySpRds("KEN")

## End(Not run)

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.