Skip to content
Prev 31062 / 398506 Next

sum

Luis,

I use this:

# sum of list l
l.sum <- l[[1]]  # just to create the result matrix with proper dimensions
and dimnames
l.sum[] <- colSums(do.call("rbind", l))

There might (or might not) be a problem if your matrix is stored by row.
Just a word caution as I never checked this out.

Hope this helps,
Vadim
-------------------------------------------------- 
DISCLAIMER\ This e-mail, and any attachments thereto, is intende... {{dropped}}