powered by
Checks if all ctry admLevels are valid
allValidCtryAdmLvls(ctryCode = NULL, admLevels, gadmVersion = pkgOptions("gadmVersion"), gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)
character The ctryCode of the country of interest
character
character The admLevel(s) to search for
The GADM version to use
The format of polygons to download from GADM
Alternative to GADM. A path to a custom shapefile zip
logical whether inputted admLevels are valid
logical
# NOT RUN { validCtryAdmLvls("KEN", "adm0") #returns "KEN_adm1" # } # NOT RUN { # }
Run the code above in your browser using DataLab