Description Usage Arguments Value Examples
Get the list of admin level names from a ctryStruct file created from
the polygon for speed. It returns:
all official names starting from 1 to the specified
lowestAdmLevel
. If not lowestAdmLevel
is not
specified, all admin level names are returned
1 2 3 4 5 6 7 | getCtryStructAdmLevelNames(
ctryCode = NULL,
lowestAdmLevel,
gadmVersion = pkgOptions("gadmVersion"),
gadmPolyType = pkgOptions("gadmPolyType"),
custPolyPath = NULL
)
|
ctryCode |
|
lowestAdmLevel |
|
gadmVersion |
The GADM version to use |
gadmPolyType |
The format of polygons to download from GADM |
custPolyPath |
Alternative to GADM. A path to a custom shapefile zip |
character vector of admin level names
1 2 3 4 5 6 | ## Not run:
Rnightlights:::getCtryStructAdmLevelNames("KEN")
#returns vector [1] "County" "Constituency" "Ward"
#if KEN shapefile exists otherwise errors
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.