This page documents the data behind EpiBibR. Every number on it is computed from the data when the site is built: the version described here is the one of 2026-11-27, with 541,506 references.
Scope
EpiBibR covers the coronavirus literature indexed in PubMed, the database of biomedical literature of the U.S. National Library of Medicine (NLM). It uses the query of the CORD-19 project of the Allen Institute for AI, run on all PubMed fields:
"COVID-19" OR Coronavirus OR "Corona virus" OR "2019-nCoV" OR "SARS-CoV"
OR "MERS-CoV" OR "Severe Acute Respiratory Syndrome"
OR "Middle East Respiratory Syndrome"
The query covers COVID-19 and SARS-CoV-2, the 2003 SARS and 2012 MERS outbreaks, and the coronaviruses studied before them (human, animal and veterinary). It retrieves journal articles, reviews, letters, editorials, comments, case reports and other items. Book chapters (a few hundred PubMed records) are left out because they do not have the same fields.
years[years$year %in% c(min(years$year), 2003, 2012, 2019:this_year), ]
#> year records size_mb updated
#> 1 1949 1 0.0 2026-11-27
#> 55 2003 1500 0.1 2026-11-27
#> 64 2012 504 0.1 2026-11-27
#> 71 2019 876 0.2 2026-11-27
#> 72 2020 78183 11.6 2026-11-27
#> 73 2021 123193 20.4 2026-11-27
#> 74 2022 117808 20.0 2026-11-27
#> 75 2023 82530 14.7 2026-11-27
#> 76 2024 54285 10.3 2026-11-27
#> 77 2025 39797 7.9 2026-11-27
#> 78 2026 27107 5.5 2026-11-27The earliest reference is from 1949. A few references carry a publication year after 2026: they are issues dated in advance by their journal.
How the data are built
The data are rebuilt from the NCBI E-utilities,
PubMed’s public programming interface, by the script data-raw/build_data.R:
- Search. The query is run by publication date. PubMed returns at most 9,999 results per search, so the date range is split in two until every part is under that limit; days that are still over it (1 January of the COVID-19 years, when undated items are filed) are split again by the date the record entered PubMed.
- Download. The records are downloaded in PubMed XML, in batches.
- Parse. Each record becomes one row with the fields below, in the bibliometrix conventions. Text fields are in upper case.
-
Publish. The rows are saved as one file per
publication year on the
datarelease, with a manifest giving the number of records, the checksum and the update date of each file.
A GitHub Action runs the script on the 1st of every month. It rebuilds the previous and the current year, which receive almost all new records and corrections. The package downloads a year only when its checksum has changed, so updates are cheap for users.
Fields
fields <- c(AU = "Authors", TI = "Title", PY = "Publication year", DT = "Document type",
MESH = "MeSH terms", TC = "Times cited", SO = "Journal", J9 = "Journal abbreviation",
JI = "ISO journal abbreviation", DI = "DOI", ISSN = "ISSN", VOL = "Volume",
ISSUE = "Issue", LT = "Language", C1 = "Affiliations", RP = "First author's affiliation",
ID = "PubMed ID", DE = "Authors' keywords", UT = "PubMed ID", AU_CO = "First author's country",
DB = "Database")
filled <- vapply(names(fields), function(f) mean(!is.na(all[[f]]) & all[[f]] != ""), 1)
data.frame(field = names(fields), content = unname(fields),
filled = sprintf("%.1f%%", 100 * filled), row.names = NULL)
#> field content filled
#> 1 AU Authors 99.5%
#> 2 TI Title 100.0%
#> 3 PY Publication year 100.0%
#> 4 DT Document type 100.0%
#> 5 MESH MeSH terms 68.2%
#> 6 TC Times cited 0.0%
#> 7 SO Journal 100.0%
#> 8 J9 Journal abbreviation 100.0%
#> 9 JI ISO journal abbreviation 100.0%
#> 10 DI DOI 98.0%
#> 11 ISSN ISSN 99.6%
#> 12 VOL Volume 97.6%
#> 13 ISSUE Issue 76.9%
#> 14 LT Language 100.0%
#> 15 C1 Affiliations 96.0%
#> 16 RP First author's affiliation 96.0%
#> 17 ID PubMed ID 100.0%
#> 18 DE Authors' keywords 67.4%
#> 19 UT PubMed ID 100.0%
#> 20 AU_CO First author's country 91.5%
#> 21 DB Database 100.0%- Times cited (TC) is empty: PubMed does not count citations.
- MeSH terms are added by NLM indexers, usually some months after publication, so recent references often have none yet.
-
Abstracts are not included (see Licence);
EpiBib_abstract()andEpiBib_add_abstracts()get them live from PubMed. - For bibliometrix, use
EpiBib_to_bibliometrix(), which puts the MeSH terms inID, where bibliometrix expects keywords.
Country of the first author
PubMed gives affiliations as free text. EpiBibR assigns each
reference the country of its first author’s affiliation
(AU_CO), in three steps:
- Country names. The affiliation is matched against country names and their usual variants (e.g. “UNITED STATES”, “U.S.A.”, “PEOPLE’S REPUBLIC OF CHINA”, “UK”, “ENGLAND”). When several countries appear, the last one is kept, as affiliations usually end with the country.
- US states. Affiliations naming a US state or its postal code, but no country, are assigned to the USA.
-
E-mail domain. Otherwise, the country-code domain
of an e-mail address in the affiliation is used (e.g.
.fr,.jp).
with_affil <- !is.na(all$RP)
era <- cut(all$PY, c(-Inf, 2002, 2019, Inf), labels = c("Before 2003", "2003-2019", "2020 onwards"))
data.frame(
period = levels(era),
references = as.vector(table(era)),
with_affiliation = sprintf("%.1f%%", 100 * tapply(with_affil, era, mean)),
country_found = sprintf("%.1f%%", 100 * tapply(!is.na(all$AU_CO), era, sum) / tapply(with_affil, era, sum))
)
#> period references with_affiliation country_found
#> 1 Before 2003 4577 61.2% 93.0%
#> 2 2003-2019 13913 87.9% 97.0%
#> 3 2020 onwards 523016 96.5% 95.2%The country is found for 95.3% of the references with an affiliation. Older references often have no affiliation at all: PubMed did not routinely record affiliations before 1988, and recorded only the first author’s until 2014.
Check against bibliometrix. bibliometrix has its own method for the same information. On a random sample of references with an affiliation, the two methods agree as follows:
set.seed(2020)
s <- all[!is.na(all$RP) & !is.na(all$AU_CO), ][sample(sum(!is.na(all$RP) & !is.na(all$AU_CO)), 5000), ]
b <- bibliometrix::metaTagExtraction(s, Field = "AU1_CO", sep = ";")
both <- !is.na(b$AU1_CO)
cat(sprintf("bibliometrix finds a country for %.1f%% of the sample; when both find one, they agree %.1f%% of the time.",
100 * mean(both), 100 * mean(b$AU1_CO[both] == s$AU_CO[both])))
#> bibliometrix finds a country for 85.4% of the sample; when both find one, they agree 96.3% of the time.The most frequent disagreements:
d <- both & b$AU1_CO != s$AU_CO
head(sort(table(paste(s$AU_CO[d], "(EpiBibR) vs", b$AU1_CO[d], "(bibliometrix)")), decreasing = TRUE), 8)
#>
#> SOUTH KOREA (EpiBibR) vs KOREA (bibliometrix)
#> 91
#> TAIWAN (EpiBibR) vs CHINA (bibliometrix)
#> 32
#> BOSNIA AND HERZEGOVINA (EpiBibR) vs BOSNIA (bibliometrix)
#> 2
#> FRANCE (EpiBibR) vs SWITZERLAND (bibliometrix)
#> 2
#> UNITED KINGDOM (EpiBibR) vs CHINA (bibliometrix)
#> 2
#> UNITED KINGDOM (EpiBibR) vs IRELAND (bibliometrix)
#> 2
#> AUSTRALIA (EpiBibR) vs LITHUANIA (bibliometrix)
#> 1
#> AUSTRALIA (EpiBibR) vs SPAIN (bibliometrix)
#> 1Licence
NLM provides PubMed citation data free of charge, with no licence agreement, under its terms and conditions. EpiBibR follows them:
-
Attribution. The data are credited as courtesy
of the U.S. National Library of Medicine in the package startup
message, in every chart caption, in
citation("EpiBibR")and on this site. -
Currency. The data are rebuilt monthly, and each
chart and
EpiBib_years()give the date of the data. PubMed changes every day, so the data may not reflect the most current PubMed records. - No endorsement. NLM does not endorse EpiBibR.
- Abstracts. Abstracts may be protected by the copyright of their publishers, so they are not redistributed: they are searched and retrieved live from PubMed for the user’s own research.
Usage
GitHub counts the downloads of each file of the data
release. The badges on the home page show two of these
counts:
-
Data loads: downloads of
manifest.csv, the index of the data. EpiBibR fetches it once per R session that uses the data, so this is about the number of sessions that used EpiBibR. - Data files downloaded: downloads of all the files (one per year). A user who loads every year downloads 80 files; later sessions download only the years that have changed.
The counts start with the data release, in November
2026. EpiBibR was not distributed through CRAN, and GitHub does not
count package installations, so earlier use is not known.
Limitations
-
First author only.
AU_COdescribes the first author’s country, not the whole team. For collaborations, see the country analysis in Reproducible bibliometric analysis. - Namesakes. Authors are listed as PubMed gives them (surname and initials), so different people with the same name are counted together, and the same person may appear under two spellings.
- Query, not topic. The query matches any reference that mentions a coronavirus term anywhere in its record. Some references are only marginally about coronaviruses (e.g. studies of the pandemic’s effects on other conditions).
-
Publication year.
PYis the year of the journal issue. Online-first articles may appear a year earlier in other databases. - Moving data. References are added, corrected and retracted in PubMed every day, and the monthly rebuild follows them. To reproduce an analysis exactly, save the data you used (see Reproducible bibliometric analysis).
If you use EpiBibR, please cite Warin (2020) https://doi.org/10.2196/19615 and Warin (2021) https://doi.org/10.2196/31510.