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

[R] Reading in multiple files in a loop

2008-03-27 Thread Zu Thur Yew
Hi, I'm new to R and want to use it to analyse a number of data files (e.g. 100). I want to read in multiple files in a loop in a specific order (e.g. 1 to 100) and was hoping to do something like: for (r in 1:100) { d1 <-read.table(r.anl) for (r2 in 1:100) { d2 <-read.table(r2.anl) cc