I would like to calculate sums for certain columns and then apply this summation for every row. Unfortunately, I can only get to the first step. How do I now make it happen
You could do something like this:
summed <- rowSums(zscore[, c(1, 2, 3, 5)])