allValidCtryAdmLvls: Checks if all ctry admLevels are valid

Description Usage Arguments Value Examples

View source: R/polygons.R

Description

Checks if all ctry admLevels are valid

Usage

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

Arguments

ctryCode

character The ctryCode of the country of interest

admLevels

character The admLevel(s) to search for

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

logical whether inputted admLevels are valid

Examples

1
2
3
4
5
## Not run: 
validCtryAdmLvls("KEN", "adm0")
#returns "KEN_adm1"

## End(Not run)

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