Re: [R] alternative to rbind within a loop

2009-07-23 Thread Denis Chabot
nt: Thursday, July 23, 2009 1:54 PM To: list R Subject: [R] alternative to rbind within a loop Hi, I often have to do this: select a folder (directory) containing a few hundred data files in csv format (up to 1000 files, in fact) open each file, transform some character variables in date-

Re: [R] alternative to rbind within a loop

2009-07-23 Thread Don MacQueen
Another approach that might be worth trying is to create an empty data frame with lots and lots of rows before looping, and then replace rather than append. Of course, this requires knowing at least approximately how many rows total you will have. This suggestion comes from the help page for

Re: [R] alternative to rbind within a loop

2009-07-23 Thread Greg Snow
gt; -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Denis Chabot > Sent: Thursday, July 23, 2009 1:54 PM > To: list R > Subject: [R] alternative to rbind within a loop > > Hi, > > I often have to do thi

[R] alternative to rbind within a loop

2009-07-23 Thread Denis Chabot
Hi, I often have to do this: select a folder (directory) containing a few hundred data files in csv format (up to 1000 files, in fact) open each file, transform some character variables in date-tiime format make into a dataframe (involves getting rid of a few variables I don't need conc