Re: [R] why not to enclose in 'try' everything?

From: Vladimir Eremeev <wl2776_at_gmail.com>
Date: Tue 23 Jan 2007 - 09:04:31 GMT

fit<-NULL
try (

       {
          fit <- lm(y~x, data = data_fitting)
          coeffs <- as.list(coef(fit))
          ## other subsequent processes
       }, 
       silent =TRUE)

-- 
View this message in context: http://www.nabble.com/Re%3A--R--Query-about-using-try-block-tf3060494.html#a8517796
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue Jan 23 20:09:53 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 23 Jan 2007 - 09:30:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.