PubMedScrapeR: PubMedScrapeR is a function that will send keyword queries to...

Description Usage Arguments Value Examples

View source: R/pubmedscraper.R

Description

PubMedScrapeR is a function that will send keyword queries to PubMed, scrape all abstracts that are returned by the query, and return the most frequently occuring words associated with the keyword. Results are purely composed by words associated with the keyword from published abstracts on PubMed.

Usage

1
PubMedScrapeR(keyword, top_n = 2000, output = NULL, verbose = FALSE)

Arguments

keyword

a character string or many strings that are comma seperated

top_n

top frequently occuring words to return

output

(optional) directory to output results

verbose

provides information about when querying PubMed API

Value

a list of data.frames containing the top_n most frequently occuring words found in PubMed abstracts given keyword

Examples

1
2
results <- PubMedScrapeR::PubMedScrapeR(keyword = c("Shan Sabri", "asdfjkj;"), top_n = 2000, verbose = TRUE)
results <- PubMedScrapeR::PubMedScrapeR(keyword = c("Shan Sabri", "asdfjkj;"), top_n = 2000, verbose = FALSE)

ShanSabri/PubMedScrapeR documentation built on Oct. 30, 2019, 11:53 p.m.