Sum rows in data.frame or matrix January 5, 2023 by Tarik you can use rowSums rowSums(data) should give you what you want.