get_cc: Get ISO country code

View source: R/cc.R

get_ccR Documentation

Get ISO country code

Description

Get ISO country code from a country name.

Usage

get_cc(country)

Arguments

country

A character vector of country names.

Value

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

Examples

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

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