Learn R Programming

dialr (version 0.4.2)

get_cc: Get ISO country code

Description

Get ISO country code from a country name.

Usage

get_cc(country)

Value

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

Arguments

country

A character vector of country names.

Examples

Run this code
get_cc("Australia")
get_cc(c("Australia", "China", "United states"))

Run the code above in your browser using DataLab