From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Sat 27 Dec 2003 - 01:07:45 EST
Message-id: <Pine.LNX.4.44.0312261406500.3215-100000@gannet.stats>
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="."))
> Error in file(file, "r") : unable to open connection
> In addition: Warning message:
> cannot open file `i.txt'
> ------------------
-- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Thu 01 Jan 2004 - 09:21:04 EST