get_records | R Documentation |
A wrapper around entrez_fetch
, get_records
fetches PubmedArticle records and stores the records in a tidy dataframe suitable for processing using tools from the tidyverse.
get_records( search_terms, pub_type = "journal article", api_key = NULL, date_type = "PDAT", min_date = "1966/01/01", max_date = format(Sys.Date(), "%Y/%m/%d") )
search_terms |
A character string of terms that define the scope of the PubMed database query. Boolean operators (AND, OR, NOT) and search field tags may be used to create more complex search criteria. Commonly used search fields tags include:
For a full set of search fields tags: PubMed search field tags. Note that the article publication type, date type, and date range are modified using the |
pub_type |
A character string specifying the type of publication the search must return. The default value is journal article. For more information: PubMed article types. |
api_key |
An API character string obtained from the users NCBI account. The key is not essential, but it specifying a key gives substantially faster record query rates. |
date_type |
A character string specifying the publication date type that is being specified in the search. Available values are:
|
min_date |
A character string in the format 'YYYY/MM/DD', 'YYYY/MM' or 'YYYY' specifying the starting date of the search. The default value is 1966/01/01'. |
max_date |
A character string in the format 'YYYY/MM/DD', 'YYYY/MM' or 'YYYY' specifying the end date of the search. The default value is |
A long-format dataframe (each author of an article on a new row) with the following columns:
Character string specifying author surname.
Character string specifying author initials.
Character string specifying title of an article.
Character string specifying the journal title (abbreviated title name).
Character string specifying publication status of an article (e.g., ahead of print.
Character string specifying the journal volume.
Character string specifying the page numbers of in print articles.
Character string specifying the year an article came out in print.
Character string specifying the year an article was added to the PubMed database.
Character string specifying the PubMed ID of an article.
Character string specifying the DOI of an article.
Character string containing the full abstract of an article
entrez_search
and entrez_fetch
Other related functions:
count_records()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.