tryOrFailWithNA {safestats} | R Documentation |
NA
The evaluation fails with NA
by default, but it is also able to fail with other values.
tryOrFailWithNA(expr, value = NA_real_)
expr |
Expression to be evaluated. |
value |
Return value if there is an error, default is |
Returns the evaluation of the expression, or value
if it doesn't work out.