Learn R Programming

alm (version 0.1.9)

almdatepub: Get the date when the article was published.

Description

Get the date when the article was published.

Usage

almdatepub(doi, get = NA, sleep = 0, key = NULL)

Arguments

doi
Digital object identifier for an article in PLoS Journals
get
Get year, month, or day; if unspecified, whole date returned.
sleep
Time (in seconds) before function sends API call - defaults to zero. Set to higher number if you are using this function in a loop with many API calls.
key
your PLoS API key, either enter, or loads from .Rprofile

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
almdatepub(doi='10.1371/journal.pone.0026871')
almdatepub('10.1371/journal.pone.0026871', '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')
almdatepub(doi=dois, get="month")

Run the code above in your browser using DataLab