getPolyFname: Returns the directory name of the unzipped shapefile downloaded from
http://gadm.org without the path
Description
Returns the directory name of the unzipped shapefile downloaded from
http://gadm.org without the path
Usage
getPolyFname(ctryCode = NULL, gadmVersion = pkgOptions("gadmVersion"),
gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)
Arguments
ctryCode
character the ISO3 code of the country
gadmPolyType
The format of polygons to download from GADM
custPolyPath
Alternative to GADM. A path to a custom shapefile zip
Value
character name of shapefile directory
Examples
Run this code# NOT RUN {
Rnightlights:::getPolyFname("KEN")
#returns "KEN_adm_shp"
# }
Run the code above in your browser using DataLab