I have a sample dataframe:
IDs = c(1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5) Terms = c("a", "b", "a", "d", "c", "f&q