I have a data-set as below. I would like to group by then count the number of strings. Many thanks in advance.
SO = c("Journal Of Business", "Journal Of Business", "Journal of Economy")
AU_UN = c("Dartmouth Coll;Wellesley Coll;Wellesley Coll",
"Georgetown Univ;Fed Reserve Syst",
"Georgetown Univ;Fed Reserve Syst")
df <- data.frame(SO, AU_UN);df
Expected Answer
Journal Of Business Dartmouth Coll (1);Wellesley Coll (2); Georgetown Univ (1);Fed Reserve Syst (1)
Journal of Economy Georgetown Univ (1); Fed Reserve Syst (1)