Hi Mark,
You can use:
all_files <- dir(pattern="Data")
One_file <- all_files[1]
Is this what you want?
Cheers,
Augusto
Augusto Sanabria. MSc, PhD.
Mathematical Modeller
Risk & Impact Analysis Group
Geospatial & Earth Monitoring Division
Geoscience A
Hi, looks like the list.files() method was the key to my problem. With
that, I was able to just loop through the "files" variable and get the
file names to load
Thanks for your help.
Mark
On Jan 31, 2010, at 8:23 PM, jim holtman wrote:
Something like the following might work. YOu can use
Something like the following might work. YOu can use 'choose.dir()'
to get the directory:
files <- list.files(path=yourDir)
result <- do.call(rbind, lapply(files, read.csv))
On Sun, Jan 31, 2010 at 9:10 PM, Mark Altaweel wrote:
> Hi,
>
> I am trying to load csv type data from a folder. However,
3 matches
Mail list logo