rAltmetric

Query and visualize metrics from altmetric.com

https://github.com/ropensci/raltmetric

Science Score: 33.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
    Links to: nature.com
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.2%) to scientific vocabulary

Keywords

altmetrics bibliometrics citations r r-package rstats

Keywords from Contributors

genome geocode helminth disease-networks parasites biodiversity gbif species noaa-data spocc
Last synced: 6 months ago · JSON representation

Repository

Query and visualize metrics from altmetric.com

Basic Info
Statistics
  • Stars: 48
  • Watchers: 11
  • Forks: 18
  • Open Issues: 8
  • Releases: 0
Archived
Topics
altmetrics bibliometrics citations r r-package rstats
Created over 13 years ago · Last pushed about 4 years ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
---
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![Build Status](https://travis-ci.org/ropensci/rAltmetric.svg?branch=master)](https://travis-ci.org/ropensci/rAltmetric)
 
---
 
[![minimal R version](https://img.shields.io/badge/R%3E%3D-3.3.2-6666ff.svg)](https://cran.r-project.org/)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rAltmetric)](https://cran.r-project.org/package=rAltmetric)
[![packageversion](https://img.shields.io/badge/Package%20version-0.7.9000-orange.svg?style=flat-square)](commits/master)
 
---
 
[![Last-changedate](https://img.shields.io/badge/last%20change-`r gsub('-', '--', Sys.Date())`-yellowgreen.svg)](/commits/master)



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  cache = TRUE,
  comment = "#>",
  fig.path = "README-"
)
```

![altmetric.com](https://github.com/ropensci/rAltmetric/raw/master/altmetric_logo_title.png)


# rAltmetric

![](http://cranlogs.r-pkg.org/badges/rAltmetric)  
[![Travis-CI Build Status](https://travis-ci.org/ropensci/rAltmetric.svg?branch=master)](https://travis-ci.org/ropensci/rAltmetric)    
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/ropensci/rAltmetric?branch=master&svg=true)](https://ci.appveyor.com/project/ropensci/rAltmetric)  
[![Coverage Status](https://img.shields.io/codecov/c/github/ropensci/rAltmetric/master.svg)](https://codecov.io/github/ropensci/rAltmetric?branch=master)


This package provides a way to programmatically retrieve altmetrics from various publication types (books, newsletters, articles, peer-reviewed papers and more) from [altmetric.com](http://altmetric.com). The package is really simple to use and only has two major functions:  
- `altmetrics` - Pass it a doi, isbn, uri, arxiv id or other to get metrics  
- `altmetric_data` Pass it the results from the previous call to get a tidy `data.frame`  

Questions, features requests and issues should go [here](https://github.com/ropensci/rAltmetric/issues/). 

# Installing the package 🛠

A stable version is available from CRAN. To install

```r
install.packages('rAltmetric')
# or the 👷 dev version
devtools::install_github("ropensci/rAltmetric")
```


# Quick Tutorial

## Obtaining metrics
There was a 2010 paper by [Acuna et al](http://www.nature.com/news/2010/100616/full/465860a.html) that received a lot of attention on Twitter. What was the impact of that paper?

```{r}
library(rAltmetric)
acuna <- altmetrics(doi = "10.1038/465860a")
acuna
```


## Data
To obtain the metrics in tabular form for further processing, run any object of class `altmetric` through `altmetric_data()` to get a `data.frame` that can easily be written to disk.

```{r}
altmetric_data(acuna)
```

You can save these data into a clean spreadsheet format:

```r
acuna_data <- altmetric_data(acuna)
readr::write_csv(acuna_data, path = 'acuna_altmetrics.csv')
```

# Gathering metrics for many DOIs
For a real world use-case, one might want to get metrics on multiple publications. If so, just read them from a spreadsheet and `llply` through them like the example below.

```{r}
library(rAltmetric)
library(magrittr)
library(purrr)


ids <- list(c(
  "10.1038/nature09210",
  "10.1126/science.1187820",
  "10.1016/j.tree.2011.01.009",
  "10.1086/664183"
))

alm <- function(x)  altmetrics(doi = x) %>% altmetric_data()

results <- pmap_df(ids, alm)
# This results in a data.frame with one row per identifier.
```

## Further reading
* [Metrics: Do metrics matter?](http://www.nature.com/news/2010/100616/full/465860a.html)
* [The altmetrics manifesto](http://altmetrics.org/manifesto/)


📚 To cite package `rAltmetric` in publications use:

```r
  Karthik Ram (2017). rAltmetric: Retrieves altmerics data for any
  published paper from altmetrics.com. R package version 0.7.
  http://CRAN.R-project.org/package=rAltmetric

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {rAltmetric: Retrieves altmerics data for any published paper from
altmetrics.com},
    author = {Karthik Ram},
    year = {2017},
    note = {R package version 0.7},
    url = {http://CRAN.R-project.org/package=rAltmetric},
  }
```



[![](http://ropensci.org/public_images/github_footer.png)](http://ropensci.org)

Owner

  • Name: rOpenSci
  • Login: ropensci
  • Kind: organization
  • Email: info@ropensci.org
  • Location: Berkeley, CA

GitHub Events

Total
  • Watch event: 2
Last Year
  • Watch event: 2

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 160
  • Total Committers: 6
  • Avg Commits per committer: 26.667
  • Development Distribution Score (DDS): 0.075
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Karthik Ram k****m@g****m 148
Scott Chamberlain m****s@g****m 7
steven2249 s****w@b****u 2
Maëlle Salmon m****n@y****e 1
Shane Preece s****e@l****m 1
rOpenSci Bot m****t@g****m 1
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total docker downloads: 88,618
  • Total dependent packages: 0
  • Total dependent repositories: 3
  • Total versions: 3
cran.r-project.org: rAltmetric

Retrieves Altmerics Data for Any Published Paper from 'Altmetric.com'

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 3
  • Downloads: 0
  • Docker Downloads: 88,618
Rankings
Forks count: 4.5%
Stargazers count: 7.4%
Dependent repos count: 17.6%
Average: 29.8%
Dependent packages count: 29.8%
Downloads: 89.7%
Last synced: almost 2 years ago

Dependencies

DESCRIPTION cran
  • R >= 3.3.2 depends
  • httr * imports
  • jsonlite * imports
  • rlist * imports
  • covr * suggests
  • dplyr * suggests
  • knitr * suggests
  • magrittr * suggests
  • purrr * suggests
  • rmarkdown * suggests
  • spelling * suggests
  • testthat * suggests