[R] How to let the program know the end of a file is reached?
ptit_bleu at yahoo.fr
Wed Aug 29 14:27:54 CEST 2007
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.
Yuchen Luo wrote:
> 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
> Your help will be highly appreciated!
> Best Wishes
> Yuchen Luo
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/How-to-let-the-program-know-the-end-of-a-file-is-reached--tf4346243.html#a12386085
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help