Learn R Programming

Rnightlights (version 0.2.4)

getCtryShpAllAdmLvls: Get all the admLevels in a country

Description

Get all the admLevels in a country

Usage

getCtryShpAllAdmLvls(ctryCodes = NULL,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)

Arguments

ctryCodes

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

Value

logical whether inputted admLevels are valid

Examples

Run this code
# NOT RUN {
getCtryShpAllAdmLvls("KEN")
#returns "KEN_adm1"
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab