I'm attempting to generalise a function that reads individual list components, 
in this case they are matrices, and converts them into 3 dimensional array.  I 
can input each matrix individually, but want to do it for about 1,000 of them 
...

This works
array2 <- abind(list1[[1]],list1[[2]],list1[[3]],along=3)

This doesn't
array2 <- abind(list1[[1:3]],along=3)
This doesn't either
array2 <- abind((list1[[1]]:(list1[[3]]),along=3)

Any thoughts how I can make this work for larger numbers?

Thanks

J

===============================
Dr. Jim Maas
University of East Anglia


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to