Re: [R] loop and read.table

2003-12-26 Thread Gabor Grothendieck
-- Date: Fri, 26 Dec 2003 14:07:45 + (GMT) From: Prof Brian Ripley <[EMAIL PROTECTED]> To: lefebure tristan <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Subject: Re: [R] loop and read.table On Fri, 26 Dec 2003, lefebure tristan wrote: > I would like to open several tab

Re: [R] loop and read.table

2003-12-26 Thread Prof Brian Ripley
On Fri, 26 Dec 2003, lefebure tristan wrote: > I would like to open several tables with a loop, using something like : > - > $ ls > 1.txt 2.txt 3.txt 4.txt > $ R > > for (i in 1:4) tabi<-read.table("i.txt") Use read.table(paste(i, "txt", sep=".")) > E

Re: [R] loop and read.table

2003-12-26 Thread Uwe Ligges
lefebure tristan wrote: Hi, I would like to open several tables with a loop, using something like : - $ ls 1.txt 2.txt 3.txt 4.txt $ R for (i in 1:4) tabi<-read.table("i.txt") Since i is within a character string, it cannot be used as a variable in yo

[R] loop and read.table

2003-12-26 Thread lefebure tristan
Hi, I would like to open several tables with a loop, using something like : - $ ls 1.txt 2.txt 3.txt 4.txt $ R > for (i in 1:4) tabi<-read.table("i.txt") Error in file(file, "r") : unable to open connection In addition: Warning message: cannot open fil