getPolyFnameRDS: Get the filename of the polygon zip file as downloaded from...

Description Usage Arguments Value Examples

View source: R/polygons.R

Description

Get the filename of the polygon zip file as downloaded from http://GADM.ORG

Usage

1
2
3
getPolyFnameRDS(ctryCode = NULL,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)

Arguments

ctryCode

character the ISO3 code of the country

gadmVersion

The GADM version to use

gadmPolyType

The format of polygons to download from GADM

custPolyPath

Alternative to GADM. A path to a custom shapefile zip

Value

character path to zip

Examples

1
2
Rnightlights:::getPolyFnameZip("KEN")
 #returns "path/to/"

Rnightlights documentation built on Aug. 29, 2019, 5:02 p.m.