[R] read.table() question

Giovanni Petris GPetris at uark.edu
Tue Mar 9 22:11:51 CET 2004


see

?try

HTH,
Giovanni

> Date: Tue, 09 Mar 2004 10:49:52 -0800 (PST)
> From: Susan Lin <susan_lin99 at yahoo.com>
> Sender: r-help-bounces at stat.math.ethz.ch
> Precedence: list
> 
> Hi,
> 
> In the following code, I got an error meesage if an
> input file is empty, and the program stopped running.
> Could someone to tell me how to handle this problem. I
> want the program to keep running. Thanks.
> for i in [1:3]
> {  
>     file=paste("file", i, ".dat")
>     x <- read.data(file)
>     x(11)
>     plot(x);
>     dev.off()
> 
> }
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 
> 

-- 

 __________________________________________________
[                                                  ]
[ Giovanni Petris                 GPetris at uark.edu ]
[ Department of Mathematical Sciences              ]
[ University of Arkansas - Fayetteville, AR 72701  ]
[ Ph: (479) 575-6324, 575-8630 (fax)               ]
[ http://definetti.uark.edu/~gpetris/              ]
[__________________________________________________]




More information about the R-help mailing list