Re: [R] reading in multiple files

2009-06-09 Thread Sundar Dorai-Raj
You could try: do.call("rbind", lapply(list.files("path/to/files", full = TRUE), read.csv)) And add more arguments to lapply if the files are not csv, have no header, etc. --sundar On Tue, Jun 9, 2009 at 11:18 AM, Erin Hodgess wrote: > Dear R People: > > I have about 6000 files to be read in th

Re: [R] Reading in multiple files in a loop

2008-03-27 Thread Paul Lemmens
On Thu, Mar 27, 2008 at 4:40 PM, Zu Thur Yew <[EMAIL PROTECTED]> wrote: > > for (r in 1:100) { > d1 <-read.table(r.anl) read.table(paste(r,".anl", sep="")) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea