Learn R Programming

Rnightlights (version 0.2.3)

validCtryAdmLvls: Checks if ctry admLevels are valid

Description

Checks if ctry admLevels are valid

Usage

validCtryAdmLvls(ctryCode = NULL, admLevels,
  gadmVersion = pkgOptions("gadmVersion"), 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

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