Learn R Programming

rplos (version 0.4.0)

plosviews: Search PLoS Journals by article views.

Description

Search PLoS Journals by article views.

Usage

plosviews(search, byfield = NULL, views = "alltime", limit = NULL, key = getOption("PlosApiKey", stop("need an API key for PLoS Journals")), callopts = list(), curl = getCurlHandle())

Arguments

search
search terms (character)
byfield
field to search by, e.g., subject, author, etc. (character)
views
views all time (alltime) or views last 30 days (last30) (character)
limit
number of results to return (integer)
key
your PLoS API key, either enter, or loads from .Rprofile
callopts
Optional additional curl options (debugging tools mostly)
curl
If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)

Examples

Run this code
## Not run: 
# plosviews('10.1371/journal.pone.0002154', 'id', 'alltime')
# plosviews('10.1371/journal.pone.0002154', 'id', 'last30')
# plosviews('10.1371/journal.pone.0002154', 'id', 'alltime,last30')
# plosviews(search='marine ecology', byfield='subject', limit=50)
# plosviews(search='evolution', views = 'alltime', limit = 99)
# plosviews('bird', views = 'alltime', limit = 99)
# ## End(Not run)

Run the code above in your browser using DataLab