Learn R Programming

dialr (version 0.4.2)

check_cc: Check ISO country code

Description

Check whether an ISO country code is valid.

Usage

check_cc(country)

Value

A logical vector flagging which elements are valid codes.

Arguments

country

A character vector of ISO country codes.

Examples

Run this code
check_cc(c("AU", "US", "CN", "WRONG", NA))

Run the code above in your browser using DataLab