getPubmed: Get 'PubMed' paper records by searching abstract

View source: R/getPubmed.R

getPubmedR Documentation

Get 'PubMed' paper records by searching abstract

Description

PubMed<https://pubmed.ncbi.nlm.nih.gov/> is a free search engine accessing primarily the database of references and abstracts on life ciences and biomedical topics.

Usage

getPubmed(term, add_term = NULL, num = 100)

Arguments

term

query terms e.g. gene id, GO/KEGG pathway

add_term

other searching terms Default is NULL

num

limit the number of records . Default is 100.

Value

A list of 'tibble' for pubmed records

Examples


term <- c("Tp53", "Brca1", "Tet2")
add_term <- c("stem cell", "mouse")
l <- getPubmed(term, add_term, num = 30)
# very easy to output
expoSheet(l, data_name = term, filename = "test.xlsx", dir = tempfile())


genekitr documentation built on Sept. 11, 2024, 9:10 p.m.