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

[R] create list of data frames

2008-10-27 Thread Benoit Boulinguiez
Hi all, I need to realize nonlinear regression on a thousand data sets. I guess the lapply function would help me on that thus I'd like to create a list of data frames, each data frame containing the data as follows: CeQe 1 1.849147 0.1958672 2 10.054250 0.5771036 3 18.077246