Re: [R] syntax for batching rbind process

2010-08-18 Thread Toby Gass
It works perfectly now. Thank you all. Toby On 18 Aug 2010 at 15:04, Erik Iverson wrote: > > > Toby Gass wrote: > > Thank you for the suggestions for the more efficient code. The > > problem remains, however, that the final dataframe does not contain > > the correct values. So, in the cas

Re: [R] syntax for batching rbind process

2010-08-18 Thread Erik Iverson
Toby Gass wrote: Thank you for the suggestions for the more efficient code. The problem remains, however, that the final dataframe does not contain the correct values. So, in the case of the code you suggested, imp <- lapply(test, read.csv) do.call(rbind, imp) imp does contain all the da

Re: [R] syntax for batching rbind process

2010-08-18 Thread Toby Gass
Thank you for the suggestions for the more efficient code. The problem remains, however, that the final dataframe does not contain the correct values. So, in the case of the code you suggested, imp <- lapply(test, read.csv) do.call(rbind, imp) imp does contain all the data from each datafram

Re: [R] syntax for batching rbind process

2010-08-18 Thread Erik Iverson
Toby Gass wrote: Dear helpeRs, I am attempting to read in a series of csv files so I can bind them into one large dataframe. I have written the following script: test <- list.files(".", pattern = "csv") #lline 1 imp <- list()#line 2 for (i in 1:length(t

[R] syntax for batching rbind process

2010-08-18 Thread Toby Gass
Dear helpeRs, I am attempting to read in a series of csv files so I can bind them into one large dataframe. I have written the following script: test <- list.files(".", pattern = "csv") #lline 1 imp <- list()#line 2 for (i in 1:length(test)) {