Re: [R] Automatic File Reading

From: Scionforbai <scionforbai_at_gmail.com>
Date: Wed 18 Oct 2006 - 16:04:21 GMT

Just to complete: if you need them all at the same time:

for(i in 1:100)
{
  fn <- paste("velocity",i,".txt",sep="")   varname <- paste("velocity",i,sep="")
  assign(varname,read.csv(fn))
}

and you have a list of objects {velocity1, ..., velocity100} with corresponding data.

Scionforbai



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Oct 19 02:11:23 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 18 Oct 2006 - 16:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.