[R] continue for loop in case of erros

Irene Mantzouni ima at difres.dk
Tue Oct 9 17:41:17 CEST 2007


Dear all,
 
I have a for loop which includes nls model estimation. 
The loop breaks after the first non-convergence error. 
How can I make the loop continue and try to estimate all models?
I suppose it should be sth like: if(...) { next }
but I have no idea how to setup the arguements...
 
Thank you!
 
Irene
 



More information about the R-help mailing list