Learn R Programming

Rnightlights (version 0.2.4)

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

Description

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

Usage

getPolyFnameZip(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

Run this code
# NOT RUN {
Rnightlights:::getPolyFnameZip("KEN")
 #returns "path/to/"

# }

Run the code above in your browser using DataLab