createCtryNlDataDF: Initiates the country nightlight dataframe with the country admin level
data read from the polygon
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
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
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
Run this code# NOT RUN {
initCtryNlData <- Rnightlights:::createCtryNlDataDF("KEN")
#returns a data frame
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab