| metrics | R Documentation |
Returns the metrics for a valid ImpactStory ID
metrics(id = NULL, nspace = "doi", addifnot = FALSE,
sleep = 0.5,
key = getOption("ImpactStoryKey", stop("Missing ImpactStory consumer key")))
key |
An ImpactStory API key |
id |
An object ID |
nspace |
Namespace for the identifier. Valid namespaces include doi, github (among others). Read more about available metrics here: http://impactstory.org/faq |
addifnot |
If TRUE, the function makes a call to
|
sleep |
Number of seconds to sleep between pings to retrieve data after posting item to ImpactStory database. Only used if addifnot=TRUE. This is done so as not to hit their servers too hard. |
key |
Your ImpactStory API key. |
Karthik Ram karthik.ram@gmail.com
## Not run:
Get metrics on a github repo (username,reponame)
metrics('karthikram,rtools', nspace ='github')
Get metrics on an article from its DOI
metrics('10.1038/171737a0')
# metrics on a figshare document
metrics('10.6084/m9.figshare.91458')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.