get_cc: Get ISO country code

Description Usage Arguments Value Examples

View source: R/cc.R

Description

Get ISO country code from a country name.

Usage

1
get_cc(country)

Arguments

country

A character vector of country names.

Value

A vector of ISO country codes (NA where not found).

Examples

1
2
get_cc("Australia")
get_cc(c("Australia", "China", "United states"))

Example output

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

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