Supposed that I have 99 matrix with same column and row length, and try to sum them up (element by element).
99 matrix are already assigned.
What I want to make is the code of something like below.
var <- sprintf("S%02d", 1:99) # seq. of matrix names
SUM_S <- sum(var) # S01 + S02 + ... + S99
please give me an idea of summing up many matrix in a short code.