Re: [R] Nesting functions in loops that result in error messages breaking the loop

2010-07-20 Thread Patrick McKann
Thank you so much! And in package 'base' no less...exactly what I needed! On Tue, Jul 20, 2010 at 8:55 AM, David Winsemius wrote: > > On Jul 20, 2010, at 9:44 AM, Patrick McKann wrote: > > Hello all, >> >> I am trying to write a program in R in which I call a function multiple >> times within a

Re: [R] Nesting functions in loops that result in error messages breaking the loop

2010-07-20 Thread David Winsemius
On Jul 20, 2010, at 9:44 AM, Patrick McKann wrote: Hello all, I am trying to write a program in R in which I call a function multiple times within a loop. The problem is that sometimes the function breaks down while calling another function, and produces an error message that breaks my

[R] Nesting functions in loops that result in error messages breaking the loop

2010-07-20 Thread Patrick McKann
Hello all, I am trying to write a program in R in which I call a function multiple times within a loop. The problem is that sometimes the function breaks down while calling another function, and produces an error message that breaks my loop and the program stops. I would like to keep the loop ru