[R] How to let the program know the end of a file is reached?

2007-08-29 Thread Yuchen Luo
Dear collegues. I am using scan( ) to read from a table (a csv file). I am wondering how to let the program know that the end of the file is reached? Your help will be highly appreciated! Best Wishes Yuchen Luo [[alternative HTML version deleted]]

Re: [R] How to let the program know the end of a file is reached?

2007-08-29 Thread Ptit_Bleu
Hi Yuchen, I'm not sure my message will help you but who knows (I'm a newbie : I discovered R one month ago). To load data file, I use donnees-read.table(datafile.dat, quote=\, sep=;, dec=,, skip=18) and I don't need to tell when to stop. R knows it. Good luck, Ptit Bleu. Yuchen Luo wrote: