search.pubmed: search.pubmed

Description Usage Arguments Examples

View source: R/search.pubmed.R

Description

Searched pubmed for articles matching provided search queries

Usage

1
search.pubmed(term = NULL, db = 'pubmed', retmax = '100',fields = NULL, reldate = '365', dates = NULL, sort = NULL)

Arguments

term

search phrase or phrases

db

entrez database to query, defaults to pubmed

retmax

maximum records to return. maximum is 100,000

fields

field to limit search phrase to

reldate

number of days from current to limit search to

dates

vector of length 2 with dates to limit search to in YYYY/MM/DD or YYYY/MM or YYYY format

sort

method to sort results, c('most+recent', 'journal', 'pub+date', 'relevance','title', 'author')

Examples

1
2
3
4
5
6
7
8
## simple search
#baby.search <- search.pubmed(term = 'baby')

## return at most 1000 records
#baby.search_1000 <- search.pubmed(term = 'baby', retmax = 1000)

## return at most 1000 records published in the last 30 days
#baby.search_1000_last30 <- search.pubmed(term = 'baby', retmax = 1000, reldate = 30)

ShawnBrad/SearchPubmed documentation built on Jan. 19, 2020, 5:19 p.m.