Skip to content

countrycode

1.9.0Package record

Convert Country Names and Country Codes

36packages dependsuggested by 16
932.2Kdownloads / year
81.0%test coverage
13/13flavors OK

Overview

About

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

Changes in 1.9.0
  • 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 region entries: "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

CRAN checks
13OK
Slowest check: 3.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.9.0
READMENoVignettesNoNEWSYes · 100% structured · mentions 1.9.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JOSS paper
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

932.2K
CRAN downloads in the past year
Rank #725 · ~2.6K/day · ~77.7K/mo
Daily download trend is not available in this view yet.
25.6K30 days
70.5K90 days
932.2K1 year
Compare downloads with other packages →
Also on6.3K r2u18 autocran4.5K conda_forge284 c2d4u

Repository

380Stars
83Forks
2Open issues
2Open PRs
7Releases
577Commits
26Commit identities
577 commits · Last activity 2026-10-02 · +1.3% stars, 30d
Responsiveness
How these are sampled
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

2025-10-15 · 3562026-10-21 · 380
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Docs source (1)

GitHub Pages site last deployed 2026-10-02

pkgdown site last built 2026-07-02, before release 1.9.0 (2026-08-20)

Reproducibility and dev environment (1)
Makefile
Lint, format, editor (1)
Lint workflow
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2026-07-18
    Config: a file or ignore line, not recorded which
    Commits: at least 1 crediting it in the message
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing countrycode adds no packages beyond those that come with R.

Depends (1)
R >= 2.10
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (5)
Author, Maintainer since 0.1 (2009)
Contributor · added in 1.6.0
Contributor · added in 1.1.0
Contributor · added in 1.4.0
Contributor · added in 1.00.0
Releases (33)

Pick two releases to compare their code metrics.

Show 38 earlier eventsHide 38 earlier events

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for countrycode version 1.9.0 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy