Sum rows in data.frame or matrix

you can use rowSums

rowSums(data) should give you what you want.

Leave a Comment