dat <- data.frame(
text = c("I like chicken.", "I want eggs Benedict for breakfast.", "Really?"),
group = c("A", "B", "A")
)
sum_vector_by(dat$text, dat$group)
with(presidential_debates_2012, sum_vector_by(dialogue, list(person, time)))
Run the code above in your browser using DataLab