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