powered by
Download a country's polygon RDS files from http://gadm.org and combine them into one RDS to match other polygon downloads
dnldGADMCtryShpZip(ctryCode, gadmVersion = pkgOptions("gadmVersion"), gadmPolyType = pkgOptions("gadmPolyType"), downloadMethod = pkgOptions("downloadMethod"), custPolyPath = NULL)
The ISO3 ctryCode of the country polygon to download
The GADM version to use
The format of polygons to download from GADM
The method used to download polygons
Alternative to GADM. A path to a custom shapefile zip
TRUE/FALSE Success/Failure of the download
# NOT RUN { Rnightlights:::dnldCtryShpZip("KEN", "3.6", "shpZip") # } # NOT RUN { # }
Run the code above in your browser using DataLab