Thank you In the "aggregate" how does it know which column to group? I know you give it tDates as the second argument, but it doesn't know that is from DF - we could have put anything there I think... -- View this message in context: http://n4.nabble.com/Group-by-tp1588694p1589005.html Sent from the R help mailing list archive at Nabble.com.