R: Adding two matrices with different dimensions based on columns
问题 I have 22 matrices having equal number of rows (i.e. 691) and different number of columns (i.e. 22-25). I have to add the values corresponding to same row, same column in each of the matrices resulting in one single matrix of the dimension 691*25. fullanno1 has 691 rows & 25 columns: >colnames(fullanno1) [1] "coding-notMod3" "coding-synonymous" "coding-synonymous-near-splice" [4] "intergenic" "intron" "missense" [7] "missense-near-splice" "near-gene-3" "near-gene-5" [10] "splice-3" "splice-5"