Learn R Programming

Rnightlights (version 0.1.2)

validNlMonthNum: Check if a month number is valid for a given nightlight type

Description

Check if a month number is valid for a given nightlight type. Note month num is only valid for "VIIRS" nightlight type

Usage

validNlMonthNum(monthNum, nlType = "VIIRS")

Arguments

monthNum

the month in "MM" format e.g. Jan="01", Feb="02"

nlType

type of nightlight either "VIIRS" or "OLS"

Value

TRUE/FALSE

Examples

Run this code
# NOT RUN {
validNlMonthNum("01","VIIRS")
# }
# NOT RUN {
 #returns TRUE

# }
# NOT RUN {
validNlMonthNum("13","VIIRS")
# }
# NOT RUN {
 #returns FALSE

# }
# NOT RUN {
validNlMonthNum("01","OLS")
# }
# NOT RUN {
 #returns FALSE

# }

Run the code above in your browser using DataLab