I am a bit confused here and not able to find a good answer.
I have a dataframe that I am trying to aggregate:
dt <- data.frame(age=rchisq(20,10),group=