-roger
Susan Lin wrote:
Hello,
I have a problem to handle the following statements.
for(i in [1:3])
{
file=paste("file", i, ".dat")
bb <- read.table(file)
x11()
plot(bb)
dev.off()
} When the input .dat file is empty, the program stops running and an error message appears. Could someone tell me how to handle this exception?
Thanks
______________________________________________ [EMAIL PROTECTED] 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
______________________________________________ [EMAIL PROTECTED] 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
