Learn R Programming

jmvcore (version 2.6.3)

tryNaN: try an expression, and return NaN on failure

Description

if the expression fails, NaN is returned silently

Usage

tryNaN(expr)

Value

the result, or NaN on failure

Arguments

expr

an expression to evaluate