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
4
5
6
7
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)

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.