[R] list of matrices

David Zastrau davidz at tzi.de
Wed Mar 21 16:08:25 CET 2012


Hello dear R-users,

I am currently trying to fill some datasatructure (array, list, hash...) 
with matrices that are calculated by a function and do vary in size:

mylist = list()
for(i in 1:n)
     mylist[i] = function(...) # returns a matrix

print(mylist[1]) # prints only the first element of the matrix


How can I store and afterwards access the matrices that are calculated 
by my function?

Any help would be greatly appreciated!

Best Wishes
David



More information about the R-help mailing list