Convert Country Names and Country Codes
Overview
Standardize country names, convert them into one of 40 different coding schemes, convert between coding schemes, and assign region descriptors.
- Updated the built-in country-code dictionary and synchronized it with the Python package.
- Run canonical name variations and typed conversion cases from shared YAML fixtures in both the R and Python test suites.
- Update VDEM codes to v.16. Thanks to @victorhartman PR #383.
- Add
eu27, a European Union membership code as of February 2020, excluding the United Kingdom. Thanks to @chcoste and @cjyetman for Issue #380. - Update World Bank
regionentries: "Afghanistan Middle East, North Africa, Afghanistan & Pakistan". Thanks to @gronert-m for Issue #381 and @cjyetman for helpful research.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 8
- Examples that run
- 50%2 run in a plain check · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 25%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 74%
- Median days to close, 50 most recently updated closed issues
- 60
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/vincentarelbundock/countrycode on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows
GitHub Pages site last deployed 2026-10-02
pkgdown site last built 2026-07-02, before release 1.9.0 (2026-08-20)
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-07-18Config: a file or ignore line, not recorded whichCommits: at least 1 crediting it in the message
Dependencies
Installing countrycode adds no packages beyond those that come with R.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.9.0Latest
- 1.8.02026-04-16 · diff ↗
- 1.7.02026-02-27 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.6.12025-03-31 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.6.02024-03-22 · diff ↗
- 1.5.0
- RR 4.3.0 released · 2023-04-21
- 1.4.02022-05-04 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.3.12022-02-02 · diff ↗
- 1.3.02021-07-15 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.2.0
Show 38 earlier eventsHide 38 earlier events
- 1.1.32020-05-07 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.1.22020-04-22 · diff ↗
- 1.1.12020-02-08 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.1.02018-10-27 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.00.02018-02-11 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.192017-02-06 · diff ↗
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.182014-12-29 · diff ↗
- 0.172014-07-15 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 0.162013-08-20 · diff ↗
- 0.142013-05-30 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 0.132013-03-22 · diff ↗
- 0.122013-03-08 · diff ↗
- 0.112013-02-12 · diff ↗
- 0.102013-01-20 · diff ↗
- 0.92012-12-27 · diff ↗
- 0.82012-06-26 · diff ↗
- 0.7
- 0.6
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 0.52010-08-14 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 0.42010-03-02 · diff ↗
- 0.32009-12-13 · diff ↗
- RR 2.10.0 released · 2009-10-26
- 0.22009-06-14 · diff ↗
- 0.12009-06-03
- RR 2.9.0 released · 2009-04-17
Package metadata
- First published
- 2009-06-03
- Total releases
- 33 / 17 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 486 KB / 4 files
- Download size
- 526 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("countrycode")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.00848.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.