Hi - I am looping over a structural equation model for a variety of datasets. 
Occasionally, the model returns an error and the loop then breaks.  I'd like
to set a condition which says something like "if error, then print NAs"
rather than the loop breaking, but I don't know how to say "if error".

I'm sure there's a simple answer; I've tried searching Nabble, but error as
a hitword comes up rather often on Nabble lists :)

Thanks

Paul
-- 
View this message in context: 
http://r.789695.n4.nabble.com/How-to-say-if-error-tp2266619p2266619.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org 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.

Reply via email to