Contact: aviboots(AT)netvision.net.il
40,774 questions
53,162 answers
573 users
m <- matrix(1:25, nrow=5) print(m) result = colSums(m) print(result) # run: # # [,1] [,2] [,3] [,4] [,5] # [1,] 1 6 11 16 21 # [2,] 2 7 12 17 22 # [3,] 3 8 13 18 23 # [4,] 4 9 14 19 24 # [5,] 5 10 15 20 25 # [1] 15 40 65 90 115 #