I have a 10 x 100 matrix and I want to add the first two elements of each column together in R, how do I go about this? 
I would like it to be separate for each column, e.g. Column 1 would return the sum of first 2 elements in Column 1, Column 2 would return the sum of first 2 elements in Column 2 etc.
Thank you.
 
     
    