existsCtryPoly: Checks if a country polygon exists

Description Usage Arguments Examples

View source: R/polygons.R

Description

Checks if a country polygon exists

Usage

1
2
3
4
5
6
existsCtryPoly(
  ctryCode = NULL,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"),
  custPolyPath = NULL
)

Arguments

ctryCode

character The ctryCode of the country 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

Examples

1
2
3
4
5
## Not run: 
existCtryPoly("KEN")
#returns TRUE/FALSE

## End(Not run)

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