Re: [R] create list of data frames

2008-10-27 Thread Benoit Boulinguiez
,b=0.1) ) Thanks a lot :) Regards/Cordialement Benoit Boulinguiez _ De : Kenn Konstabel [mailto:[EMAIL PROTECTED] Envoyé : lundi 27 octobre 2008 16:59 À : Benoit Boulinguiez Cc : r-help@r-project.org Objet : Re: [R] create list of data frames Hi, > To realize the data frame I'

Re: [R] create list of data frames

2008-10-27 Thread Kenn Konstabel
Hi, > To realize the data frame I've tried this > > for (i in 1:1000) > { > foo<-list(c(foo[],data.frame( Ce=DATA1.x[,i],Qe=DATA1.y[,i]))) > } I think the following would do it: foo <- list() for(i in 1:1000) foo[[i]] <- data.frame(Ce = DATA1.x[,i], Qe=DATA1.y[,i]) But then again, do you re