Learn R Programming

Rnightlights (version 0.2.4)

validCtryCodes: Check if country codes are valid

Description

Check if country codes are valid

Usage

validCtryCodes(ctryCodes)

Arguments

ctryCodes

the ISO3 country codes to validate

Value

named logical vector TRUE/FALSE

Examples

Run this code
# NOT RUN {
validCtryCodes(c("KEN", "UGA")) #returns TRUE TRUE

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

# }

Run the code above in your browser using DataLab