powered by
Get the list of admin level names in a polygon shapefile
getCtryPolyAdmLevelNames(ctryCode)
the ctryCode of the country of interest
character vector of admin level names
# NOT RUN { Rnightlights:::getCtryPolyAdmLevelNames("KEN") #returns vector [1] "County" "Constituency" "Ward" #if KEN shapefile exists otherwise errors # } # NOT RUN { # }
Run the code above in your browser using DataLab