Learn R Programming

Rnightlights (version 0.1.5)

getCtryPolyAdmLevelNames: Get the list of admin level names in a polygon shapefile

Description

Get the list of admin level names in a polygon shapefile

Usage

getCtryPolyAdmLevelNames(ctryCode)

Arguments

ctryCode

the ctryCode of the country of interest

Value

character vector of admin level names

Examples

Run this code
# 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