Skip to content

Commit

Permalink
generate tag stats from new dump structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jtanevski committed Jul 29, 2021
1 parent aff06ca commit d5f0788
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tag_stats.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
library(dplyr)
library(purrr)
library(ggplot2)
library(stringr)

dump <- readRDS("data_dump.rds")

tags <- unlist(dump %>%
map(~ .x$content$results %>%
map(~ .x$content %>%
map(~ .x$f1000Tags)))

tag.stats <- tibble(channel = str_remove(names(tags),"\\d+"), tag = tags)
Expand Down

0 comments on commit d5f0788

Please sign in to comment.