[R] ignore error in for-loop

Erich STRIESSNIG striess at iiasa.ac.at
Mon Oct 6 15:03:35 CEST 2008

Hi all,

Can anybody tell me what to do in case an error occurs inside a 
for-loop and I don't want the program to exit the loop? Rather 
instead I would like it to just go to the next number in the loop and 
try again with the new number. Is there any function like "on error 
go back to" or "skip error" ... ?

Thanks in advance,

International Institute for Applied Systems Analysis
A-2361 Laxenburg, Austria
E-Mail: striess at iiasa.ac.at
Phone : +43 2236 807-0
Fax   : +43 2236 71313

More information about the R-help mailing list