Learn R Programming

Rnightlights (version 0.1.2)

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, nlPeriod, stat, nlType)

Arguments

ctryCode

character the ISO3 code of the country

nlPeriod

character the nlPeriod

stat

character the stat to check for

nlType

character the nlType

Value

TRUE/FALSE

Examples

Run this code
# NOT RUN {
existsCtryNlData("KEN", "201204", "sum", "VIIRS")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab