sum cells of certain columns for each row

You could do something like this:

summed <- rowSums(zscore[, c(1, 2, 3, 5)])

Leave a Comment