Learn R Programming

Rnightlights (version 0.1.5)

validCtryCode: 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

validCtryCode(ctryCode)

Arguments

ctryCode

the ISO3 country code to validate

Value

TRUE/FALSE

Examples

Run this code
# NOT RUN {
validCtryCode("KEN") #returns TRUE

validCtryCode("UAE") #returns FALSE. "United Arab Emirates" ISO3 code = "ARE"

# }

Run the code above in your browser using DataLab