powered by
Check if an nlPeriod is valid for a given nightlight type
validNlPeriod(nlPeriod, nlType)
the nlPeriod of interest
type of nightlight either "VIIRS" or "OLS"
TRUE/FALSE
# NOT RUN { validNlPeriod("201204","VIIRS") #returns TRUE validNlPeriod("201203","VIIRS") #returns FALSE validNlPeriod("2012","OLS") #returns TRUE # }
Run the code above in your browser using DataLab