Learn R Programming

rcrossref (version 0.5.8)

cr_citation_count: Get a citation count via CrossRef OpenURL

Description

Get a citation count via CrossRef OpenURL

Usage

cr_citation_count(doi, url = "http://www.crossref.org/openurl/", key = "cboettig@ropensci.org", ...)

Arguments

doi
(character) digital object identifier for an article
url
(character) the url for the function (should be left to default)
key
your Crossref OpenURL email address, either enter, or loads from .Rprofile. We use a default, so you don't need to pass this.
...
Curl options passed on to GET

Value

single numeric value - the citation count, or NA if not found or no count available

Details

See http://labs.crossref.org/openurl/ for more info on this Crossref API service.

See Also

cr_search, cr_r

Examples

Run this code
## Not run: 
# cr_citation_count(doi="10.1371/journal.pone.0042793")
# cr_citation_count(doi="10.1016/j.fbr.2012.01.001")
# # DOI not found
# cr_citation_count(doi="10.1016/j.fbr.2012")
# ## End(Not run)

Run the code above in your browser using DataLab