Skip to content
Prev 164006 / 398506 Next

Finding the first value without warning in a loop

log(-1) is not an error in R bug it does generate a warning and a NaN result.

If there is a warning then the statement that causes the warning and all
remaining statements in the tryCatch are not executed.  Instead the
warning= function is invoked.
On Sun, Dec 7, 2008 at 1:09 PM, David Winsemius <dwinsemius at comcast.net> wrote: