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-
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
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
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
4 matches
Mail list logo