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.
______________________________________________
[email protected] 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.