Andy,
First of all, thanks for your solution.
When I test your code, it doesn't work. I am not sure if I miss something.
Here is the code I tested:
flist-list.files(path = file.path(, c:\\),pattern=[.]csv$)
csvlist-lapply(flist, read.csv, header = TRUE)
Here is the error:
Error in file(file,
2006/10/29, Wensui Liu [EMAIL PROTECTED]:
Andy,
First of all, thanks for your solution.
When I test your code, it doesn't work. I am not sure if I miss something.
Here is the code I tested:
flist-list.files(path = file.path(, c:\\),pattern=[.]csv$)
First of all, I think the command should be
Works on all platforms:
flist - list.files(path=file.path(somedir, somewhere),
pattern=[.]csv$)
csvlist - lapply(flist, read.csv, header=TRUE)
whateverList - lapply(csvlist, whatever)
Andy
From: Richard M. Heiberger
Wensui Lui asks:
is there a similar way to read all