tryOrFailWithNA | R Documentation |
Try to evaluate an expression, if not fail with NA (default)
tryOrFailWithNA(expr, value = NA_real_)
expr |
Expression to be evaluated |
value |
Return value if there is an error, default is NA_real_ |
Returns the evaluation of the expression, or value if it doesn't work out
tryOrFailWithNA(integrate(exp, -Inf, Inf)[["value"]], NA)
tryOrFailWithNA(integrate(exp, 0, 3)[["value"]], NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.