alm_datepub: Get the date when the article was published.

Description Usage Arguments Value References Examples

Description

Get the date when the article was published.

Usage

1
2
3
alm_datepub(doi = NULL, pmid = NULL, pmcid = NULL, wos = NULL,
  scp = NULL, url = NULL, get = NULL, key = NULL,
  api_url = "http://alm.plos.org/api/v5/articles", ...)

Arguments

doi

Digital object identifier for an article in PLoS Journals (character)

pmid

PubMed object identifier (numeric)

pmcid

PubMed Central object identifier (numeric)

wos

Web of Science identifier (character)

scp

Scopus identifier (character)

url

Canonical URL (character)

get

Get year, month, or day; if unspecified, whole date returned.

key

your PLoS API key, either enter, or loads from .Rprofile (character)

api_url

API endpoint, defaults to http://alm.plos.org/api/v3/articles (character)

...

optional additional curl options (debugging tools mostly)

Value

Date when article was published.

References

See a tutorial/vignette for alm at http://ropensci.org/tutorials/alm_tutorial.html

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
alm_datepub(doi='10.1371/journal.pone.0026871')
alm_datepub('10.1371/journal.pone.0026871', get='year')

# Provide more than one DOI
dois <- c('10.1371/journal.pone.0026871','10.1371/journal.pone.0048868',
		'10.1371/journal.pone.0048705','10.1371/journal.pone.0048731')
alm_datepub(doi=dois, get="month")

## End(Not run)

alm documentation built on Jan. 15, 2017, 3:22 p.m.