Hi Amy, I guess U can just use the apply() function for the purpose U described. Alex -- View this message in context: http://r.789695.n4.nabble.com/Using-tapply-tp3009834p3012694.html Sent from the R help mailing list archive at Nabble.com.