createCtryStruct: Save ctry admin structure to text file for faster access
Description
Save ctry admin structure to text file for faster access
Usage
createCtryStruct(ctryCode = NULL,
gadmVersion = pkgOptions("gadmVersion"),
gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)
Arguments
ctryCode
The ISO3 ctryCode of the country
gadmPolyType
The format of polygons to use from GADM
custPolyPath
Alternative to GADM. A path to a custom shapefile zip
Examples
Run this code# NOT RUN {
Rnightlights:::createCtryStruct("KEN")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab