check_cc: Check ISO country code

Description Usage Arguments Value Examples

View source: R/cc.R

Description

Check whether an ISO country code is valid.

Usage

1
check_cc(country)

Arguments

country

A character vector of ISO country codes.

Value

A logical vector flagging which elements are valid codes.

Examples

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

Example output

OpenJDK 64-Bit Server VM warning: Can't detect primordial thread stack location - find_vma failed
[1]  TRUE  TRUE  TRUE FALSE FALSE
There were 15 warnings (use warnings() to see them)

dialr documentation built on May 24, 2021, 5:07 p.m.