Learn R Programming

Rnightlights (version 0.1.5)

validNlPeriodVIIRS: Check if a VIIRS nlYearMonth is valid

Description

Check if a VIIRS nlYearMonth is valid Note this function is only valid for the "VIIRS" nightlight type

Usage

validNlPeriodVIIRS(nlYearMonth)

Arguments

nlYearMonth

the yearmonth in "YYYYMM" format e.g. "201410", "201701"

Value

TRUE/FALSE

Examples

Run this code
# NOT RUN {
Rnightlights:::validNlPeriodVIIRS("201512")
 #returns TRUE

Rnightlights:::validNlPeriodVIIRS("201513")
 #returns FALSE; invalid month 13

Rnightlights:::validNlPeriodVIIRS("201201")
 #returns FALSE #VIIRS starts in "201204"

# }

Run the code above in your browser using DataLab