Learn R Programming

Rnightlights (version 0.1.2)

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. "201210", "201401"

Value

TRUE/FALSE

Examples

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

# }
# NOT RUN {
validNlPeriodVIIRS("201513")
# }
# NOT RUN {
 #returns FALSE

# }
# NOT RUN {
validNlPeriodVIIRS("201201")
# }
# NOT RUN {
 #returns FALSE #VIIRS starts in "201204"

# }

Run the code above in your browser using DataLab