createCtryNlDataDF: Initiates the country nightlight dataframe with the country...

Description Usage Arguments Value Examples

View source: R/ctrynldata.R

Description

Initiates the country admin level nightlight dataframe with the country admin level data read from the polygon. This includes admin levels, level names and area

Usage

1
2
3
createCtryNlDataDF(ctryCode = NULL, admLevel,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL)

Arguments

ctryCode

the ISO3 code of the country

admLevel

The country admin level of interest

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

dataframe with the country admin level data

Examples

1
2
3
4
5
## Not run: 
initCtryNlData <- Rnightlights:::createCtryNlDataDF("KEN")
 #returns a data frame

## End(Not run)

Rnightlights documentation built on Aug. 29, 2019, 5:02 p.m.