Hi,
So I have a data frame, and I would like to add an additional column which shows the total sum of rows within the subgroups...
heres a simple example
grp=c("A","A","A","A","A","B","B","B","B","C","C")
hour=c(1,1,1,2,2,1,1,1,2,1,1)
test=data.frame(grp,hour,score)
grp hour
1 A 1...