Thanks- this works just as I needed- Emma -- View this message in context: http://r.789695.n4.nabble.com/Summing-over-specific-columns-in-a-matrix-tp3179400p3179439.html Sent from the R help mailing list archive at Nabble.com.