Skip to content

Instantly share code, notes, and snippets.

@sckott
Created December 9, 2013 18:06
Show Gist options
  • Save sckott/7876989 to your computer and use it in GitHub Desktop.
Save sckott/7876989 to your computer and use it in GitHub Desktop.

Install alm package from CRAN

install.packages("alm")
library(alm)

Get metrics on a DOI, specifying info=history gives you the detailed data instead of totals. Note that counter is PLOS's views (includes page views of html, downloads of XML and PDF).

out <- alm(doi="10.1371/journal.pone.0029797", info="history")
head( out[ out$.id %in% 'counter' ,] )

First 6 rows

        .id      dates totals
585 counter 2013-12-09  29551
586 counter 2013-12-08  29533
587 counter 2013-12-07  29525
588 counter 2013-12-06  29522
589 counter 2013-12-05  29506
590 counter 2013-12-04  29481
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment