Re: [R] ignore error in for-loop

2008-10-06 Thread Wacek Kusnierczyk
Erich STRIESSNIG wrote: > 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

Re: [R] ignore error in for-loop

2008-10-06 Thread ONKELINX, Thierry
- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Erich STRIESSNIG Verzonden: maandag 6 oktober 2008 15:04 Aan: r-help@r-project.org Onderwerp: [R] ignore error in for-loop Hi all, Can anybody tell me what to do in case an error occurs inside a for-loop and I don't want the progr

[R] ignore error in for-loop

2008-10-06 Thread Erich STRIESSNIG
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