[R] How to read more than 1 table?

2006-02-20 Thread Atte Tenkanen
Question 1) I want to read many csv-tables and run the same commands for all of them. Is there some simpler solution than this below to solve this problem? for (g in 1:6) { if (g==1){k=kt1_0057} if (g==2){k=kt1_0101} if (g==3){k=kt1_0613} if (g==4){k=staten} if (g==5){k=tenpenny} if

Re: [R] How to read more than 1 table?

2006-02-20 Thread Kjetil Brinchmann Halvorsen
Atte Tenkanen wrote: Question 1) I want to read many csv-tables and run the same commands for all of them. Is there some simpler solution than this below to solve this problem? for (g in 1:6) { if (g==1){k=kt1_0057} if (g==2){k=kt1_0101} if (g==3){k=kt1_0613} if (g==4){k=staten} if

Re: [R] How to read more than 1 table?

2006-02-20 Thread Søren Højsgaard
for (k in list.files()){ ... } best Søren Fra: [EMAIL PROTECTED] på vegne af Atte Tenkanen Sendt: ma 20-02-2006 22:40 Til: r-help@stat.math.ethz.ch Emne: [R] How to read more than 1 table? Question 1) I want to read many csv-tables and run the same commands