[R] Save variable with loop part

marcg mdgi at gmx.ch
Mon Oct 15 11:12:57 CEST 2007


Hello

does anyone know how to save in a variable with a loop part.

Im reading several csv files with read.table and would like to save with a loop:

for (i in 0:9){
}

should give read0, read1, read2, read3, read4, read5, read6, read7, read8, read9

st. like read(i)<-read.table("myfile.csv".....)

I tried with paste("read", i, sep"") or to save as a vector with my names, but it doesn't work

suggestions?

thanks

marc
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser



More information about the R-help mailing list