Re: [R] Automatic File Reading [Broadcast]

2006-10-28 Thread Wensui Liu
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,

Re: [R] Automatic File Reading [Broadcast]

2006-10-28 Thread ronggui
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

Re: [R] Automatic File Reading [Broadcast]

2006-10-18 Thread Liaw, Andy
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