Learn R Programming

Rnightlights (version 0.2.4)

deleteCtryPoly: Download a country's polygon shapefile from http://gadm.org

Description

Download a country's polygon shapefile from http://gadm.org

Usage

deleteCtryPoly(ctryCode = NULL,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL,
  downloadMethod = pkgOptions("downloadMethod"))

Arguments

ctryCode

The ISO3 ctryCode of the country polygon to download

gadmVersion

The GADM version to use

gadmPolyType

The format of polygons to download from GADM

custPolyPath

Alternative to GADM. A path to a custom shapefile zip

downloadMethod

The method used to download polygons

Value

TRUE/FALSE Success/Failure of the download

Examples

Run this code
# NOT RUN {
Rnightlights:::deleteCtryPoly("KEN")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab