check_cc: Check ISO country code

View source: R/cc.R

check_ccR Documentation

Check ISO country code

Description

Check whether an ISO country code is valid.

Usage

check_cc(country)

Arguments

country

A character vector of ISO country codes.

Value

A logical vector flagging which elements are valid codes.

Examples

check_cc(c("AU", "US", "CN", "WRONG", NA))

dialr documentation built on Oct. 17, 2023, 1:11 a.m.