allValidCtryCodes: Check if all ctryCodes are valid

Description Usage Arguments Value Examples

View source: R/ctrycode.R

Description

Check if all ctryCodes are valid

Usage

1
allValidCtryCodes(ctryCodes)

Arguments

ctryCodes

the ISO3 country codes to validate

Value

TRUE/FALSE

Examples

1
2
3
4
Rnightlights:::allValidCtryCodes(c("BDI", "ETH", "KEN", "RWA", "TZA", "UGA")) #returns TRUE

#returns FALSE. "United Arab Emirates" ISO3 code = "ARE"
Rnightlights:::allValidCtryCodes(c("UGA", "UAE"))

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.