get_countrycode: Obtain valid country codes in ISO-3 format

Description Usage Arguments Value Examples

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-r-package documentation built on May 10, 2019, 9:52 a.m.