The aggregate function is great. THanks for this post. -- View this message in context: http://n4.nabble.com/How-to-take-the-average-of-multiple-rows-tp848880p1754315.html Sent from the R help mailing list archive at Nabble.com.