Skip to content

Instantly share code, notes, and snippets.

@stephlocke
Created January 22, 2016 14:46
Show Gist options
  • Save stephlocke/8eba4cefa4e14ebbf6fd to your computer and use it in GitHub Desktop.
Save stephlocke/8eba4cefa4e14ebbf6fd to your computer and use it in GitHub Desktop.
Based on cranlogs, R operating system market share of downloads last month
link<-"http://cranlogs.r-pkg.org/downloads/daily/last-month/R"
library(httr)
library(data.table)
raw<-GET(link)
rhs<-content(raw,simplify=TRUE)$downloads[[1]]
setDT(rhs)
rhs[,sum(downloads)/rhs[,sum(downloads)],os]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment