mt_sample_pmc: A random sample from PubMed Central (PMC)

View source: R/mt_sample_pmc.R

mt_sample_pmcR Documentation

A random sample from PubMed Central (PMC)

Description

Identify a random sample of articles. Note that this function retrieves the list of currently available articles from PMC, so it requires internet connection to download a file of ~550 MB at the time of writing and, depending on the connection, it will take about a minute to run. Note that these samples will change with changes in the data provided by PMC, for which reason a "Data sampled" column is added as a time-stamp.

Usage

mt_sample_pmc(n = 1000, year_min = 2016, year_max = 2020, seed = NULL)

Arguments

n

The number of articles to sample, as a numeric.

year_min

The minimum year to sample from inclusive, as a numeric.

year_max

The maximum year to sample from inclusive, as a numeric.

seed

Provide a seed for a reproducible sample, as a numeric.

Value

A tibble of randomly sampled articles and their PMCID, PMID, DOI, Journal Title, ISSN, eISSN, Year, Volume, Issue, Page and Date sampled. Date sampled is in yyyy-mm-dd.


serghiou/metareadr documentation built on Aug. 21, 2023, 2:33 a.m.