Learn R Programming

Rnightlights (version 0.2.4)

validCtryAdmLvls: Checks if ctry admLevels are valid

Description

Checks if ctry admLevels are valid

Usage

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

Run this code
# NOT RUN {
validCtryAdmLvls("KEN", "adm0")
#returns "KEN_adm1"
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab