Re: [R] rbind in array of lists

2014-10-12 Thread Rui Barradas
Hello, Em 12-10-2014 18:26, David Winsemius escreveu: On Oct 12, 2014, at 8:45 AM, Rui Barradas wrote: Hello, Try the following. do.call(rbind, lapply(a, '[[', "var1")) do.call(rbind, lapply(a, '[[', "var2")) Could perhaps (untested) make it more general with: do.call(rbind, lapply(a, '[

Re: [R] rbind in array of lists

2014-10-12 Thread David Winsemius
On Oct 12, 2014, at 8:45 AM, Rui Barradas wrote: > Hello, > > Try the following. > > do.call(rbind, lapply(a, '[[', "var1")) > do.call(rbind, lapply(a, '[[', "var2")) Could perhaps (untested) make it more general with: do.call(rbind, lapply(a, '[[', names(a[[1]])[1])) do.call(rbind, lapply(a,

Re: [R] rbind in array of lists

2014-10-12 Thread Rui Barradas
Hello, Try the following. do.call(rbind, lapply(a, '[[', "var1")) do.call(rbind, lapply(a, '[[', "var2")) Hope this helps, Rui Barradas Em 12-10-2014 07:14, Cesar Caballero escreveu: Hi all, I have an array of lists. All lists have the same names and the vectors inside each name have the