Thank you very much for the help. I decided to go with the 'plyr' package but it is nice to have options. Have a lovely day. -- View this message in context: http://r.789695.n4.nabble.com/Aggregate-certain-rows-in-a-matrix-tp2528454p2529238.html Sent from the R help mailing list archive at Nabble.com.