Learn R Programming

Rnightlights (version 0.2.4)

existsPolyFnameZip: Check if the compressed country polygon has been downloaded and stored in the polygon folder

Description

Check if the compressed country polygon has been downloaded and stored in the polygon folder

Usage

existsPolyFnameZip(ctryCode = NULL,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)

Arguments

ctryCode

The ctryCode of interest

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

TRUE/FALSE

Examples

Run this code
# NOT RUN {
Rnightlights:::existsPolyFnameZip("KEN")
 #returns TRUE/FALSE

# }

Run the code above in your browser using DataLab