I have a dataframe with authors, papers they've published and citation counts for each paper (as well as 71 other columns). I want to find the most cited authors. The problem is that some papers have multiple authors so each author is a substring. I can separate out the authors easily enough but I can't figure out how to aggregate each of their citations. Can anyone help?
Here's the dataframe
year citation author paper_title
2018 33 author1; author2 paper1
2018 89 author2; author3 paper2
2017 10 author4 paper3
2013 10 author2 paper4
2014 9 author3 paper5
2011 1 author5 paper7
library(tidyverse); df1 %>% separate_rows(author) %>% group_by(author) %>% summarise(citation = sum(citation))