Learn R Programming

Rnightlights (version 0.2.3)

existsCtryNlData: Check if VIIRS nightlight stats exist locally

Description

Check if VIIRS nightlight data for the country exists in the country nightlight data file. First checks if the country nightlight data file exists.

Usage

existsCtryNlData(ctryCode = NULL, admLevel, nlTypes, nlPeriods, nlStats,
  gadmVersion = pkgOptions("gadmVersion"), custPolyPath = NULL)

Arguments

ctryCode

character The ISO3 code of the country

admLevel

character string The country admin level of interest

nlTypes

character The nlTypes

nlPeriods

character The nlPeriods

nlStats

character The nlStats to check for

gadmVersion

The GADM version to use

custPolyPath

Alternative to GADM. A path to a custom shapefile zip

Value

TRUE/FALSE

Examples

Run this code
# NOT RUN {
Rnightlights:::existsCtryNlData("KEN", "KEN_adm0", "VIIRS.M","201401", "sum")

# }

Run the code above in your browser using DataLab