Learn R Programming

countrycode (version 1.6.1)

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

178,407

Version

1.6.1

License

GPL-3

Maintainer

Vincent Arel-Bundock

Last Published

March 31st, 2025

Functions in countrycode (1.6.1)

guess_field

Guess the code/name of a vector
cldr_examples

List of CLDR country name codes and associated examples
get_dictionary

Get Custom Dictionaries
countryname

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

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

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

Country Code Translation Data Frame (Cross-Sectional)
countrycode

Convert Country Codes