powered by
Construct the full path to save the file containing the country data. Note it does not indicate if the file exists
getCtryNlDataFnamePath(ctryCode = NULL, admLevel, gadmVersion = pkgOptions("gadmVersion"), gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)
character string The ctryCode of interest
character string
character string The admin level of interest
The GADM version to use
The format of polygons to download from GADM
Alternative to GADM. A path to a custom shapefile zip
Character string the full path to the data file of a country admin level
# NOT RUN { #get the full path to the file containing data for KEN counties Rnightlights:::getCtryNlDataFnamePath("KEN", "KEN_adm0") # }
Run the code above in your browser using DataLab