Learn R Programming

Rnightlights (version 0.1.2)

validNlPeriod: Check if an nlPeriod is valid for a given nightlight type

Description

Check if an nlPeriod is valid for a given nightlight type

Usage

validNlPeriod(nlPeriod, nlType)

Arguments

nlPeriod

the nlPeriod of interest

nlType

type of nightlight either "VIIRS" or "OLS"

Value

TRUE/FALSE

Examples

Run this code
# 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