Re: [R] Efficient cbind of elements from two lists

2009-11-19 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Stephan Dlugosz > Sent: Thursday, November 19, 2009 7:03 AM > To: r-help@r-project.org > Subject: [R] Efficient cbind of elements from two lists > > Hi!

Re: [R] Efficient cbind of elements from two lists

2009-11-19 Thread Jorge Ivan Velez
Dear Stephan, Here is a suggestion using do.call(): res <- do.call(cbind, yourlist) res HTH, Jorge On Thu, Nov 19, 2009 at 10:03 AM, Stephan Dlugosz <> wrote: > Hi! > > I have a data.frame "data" and splitted it. > > data <- split(data, data[,1]) > > This is a quite slow procedure; and I do n

[R] Efficient cbind of elements from two lists

2009-11-19 Thread Stephan Dlugosz
Hi! I have a data.frame "data" and splitted it. data <- split(data, data[,1]) This is a quite slow procedure; and I do not want to do it again. So, any unsplit and "resplit" is no option for me. But: I have to cbind "variables" to the splitted data from another list, that contains of vectors