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
Dear Erich, Have a look at the try()-function. HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg / Sect