powered by
Checks if ctry admLevels are valid
validCtryAdmLvls(ctryCode = NULL, admLevels, gadmVersion = pkgOptions("gadmVersion"), custPolyPath = NULL)
character The ctryCode of the country of interest
character
character The admLevel(s) to search for
The GADM version to use
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