searchAdmLevel: Search for the admLevel by official name
Description
Search for the admLevel by official name. Expects the shapefile
to already exist.
Usage
searchAdmLevel(ctryCodes = NULL, admLevelNames, dnldPoly = TRUE,
downloadMethod = pkgOptions("downloadMethod"),
gadmVersion = pkgOptions("gadmVersion"), custPolyPath = NULL)Arguments
ctryCodes
character The ctryCodes of the country of interest
admLevelNames
character The names to search for
dnldPoly
logical If the country polygon doesn't exist
should we download it?
downloadMethod
The method used to download polygons
custPolyPath
Alternative to GADM. A path to a custom shapefile zip
Value
character vector of admin level names
Examples
Run this code# NOT RUN {
searchAdmLevel("KEN", "county")
#returns "KEN_adm1"
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab