Learn R Programming

alm (version 0.4.0)

alm_datepub: Get the date when the article was published.

Description

Get the date when the article was published.

Usage

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

Run this code
## 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)

Run the code above in your browser using DataLab