powered by
Add an index column to all layers of a polygon
addCtryPolyIdx(ctryCode, gadmVersion = pkgOptions("gadmVersion"), custPolyPath = NULL)
The ISO3 ctryCode of the country polygon to download
The GADM version to use
Alternative to GADM. A path to a custom shapefile zip
None
# NOT RUN { Rnightlights:::addCtryPolyIdx(ctryCode="KEN") # } # NOT RUN { # }
Run the code above in your browser using DataLab