get_countrycode: Obtain valid country codes in ISO-3 format

Description Usage Arguments Value Examples

View source: R/get_countrycode.R

Description

This function takes a text string and searches within the package data for a country code in the context of valid API country codes.

Usage

1
get_countrycode(countryname = "world")

Arguments

countryname

A text string such as "Chile", "CHILE" or "CHL".

Value

A single character if there is a exact match (e.g. get_countrycode("Chile")) or a tibble in case of multiple matches (e.g. get_countrycode("Germany"))

Examples

1
get_countrycode("world")

pachamaltese/oec documentation built on May 24, 2019, 5:57 p.m.