Learn R Programming

countrycode (version 1.9.0)

Convert Country Names and Country Codes

Description

Standardize country names, convert them into one of 40 different coding schemes, convert between coding schemes, and assign region descriptors.

Copy Link

Version

Install

install.packages('countrycode')

Monthly Downloads

25,054

Version

1.9.0

License

GPL-3

Maintainer

Vincent Arel-Bundock

Last Published

August 20th, 2026

Functions in countrycode (1.9.0)

countrycode

Convert Country Codes
get_dictionary

Get Custom Dictionaries
guess_field

Guess the code/name of a vector
countryname

Convert country names in any language to another name or code
countryname_dict

A dataframe of alternative country names in many languages. Used internally by the countryname function.
codelist_panel

Country Code Translation Data Frame (Country-Year Panel)
codelist

Country Code Translation Data Frame (Cross-Sectional)
cldr_examples

List of CLDR country name codes and associated examples