Skip to content
Prev 90267 / 398500 Next

About list to list - thanks

Thank you very much for your useful suggestions.
These are exactly what I was looking for.

foo <- list(foo1, foo2, foo3)
lapply(foo, function(x) matrix(unlist(x), nrow = length(x), byrow = TRUE))
or
lapply(foo, function(x) do.call('rbind', x))

Best, Muhammad Subianto
On 4/11/06, Muhammad Subianto <msubianto at gmail.com> wrote: