Skip to content

Instantly share code, notes, and snippets.

@sAbakumoff
Last active October 26, 2016 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sAbakumoff/6a9eb7538ef6c7fda39e2b9b8750fc84 to your computer and use it in GitHub Desktop.
Save sAbakumoff/6a9eb7538ef6c7fda39e2b9b8750fc84 to your computer and use it in GitHub Desktop.
library("tidyr")
num_of_deps<-tidy_repos %>% select(name, isDev) %>%
group_by(name, isDev) %>% count() %>%
spread(isDev, n, fill=0) %>% ungroup() %>%
select("dependencies"=`0`, "devDependencies"=`1`)
boxplot.stats(num_of_deps$dependencies)$stat
# [1] 1 5 10 20 42
boxplot.stats(num_of_deps$devDependencies)$stat
# [1] 0 5 13 24 52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment