Re: [R] Help with operation on list of matrices

2012-03-15 Thread Petr Savicky
On Wed, Mar 14, 2012 at 09:10:49PM -0400, Axel Urbiz wrote: > I'll appreciate your help on this. I have values stored in a list as in > "mylist" below. I need to sum the values over all elements of the list > aggregated by the names of the matrices. > mylist <- list(matrix(c(0.2, 0.4), 1, 2, dimnam

[R] Help with operation on list of matrices

2012-03-14 Thread Axel Urbiz
I'll appreciate your help on this. I have values stored in a list as in "mylist" below. I need to sum the values over all elements of the list aggregated by the names of the matrices. mylist <- list(matrix(c(0.2, 0.4), 1, 2, dimnames = list(NULL, c("1", "2"))), matrix(c(0.1, 0.5