50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

Rnightlights (version 0.2.4)

addCtryPolyIdx: Add an index column to all layers of a polygon

Description

Add an index column to all layers of a polygon

Usage

addCtryPolyIdx(ctryCode, gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)

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

Value

None

Examples

Run this code
# NOT RUN {
Rnightlights:::addCtryPolyIdx(ctryCode="KEN")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab