ERRVL: Return the first argument passed (out of any number) that is...

Description Usage Arguments Value See Also Examples

Description

This function is inspired by NVL, and simply returns the first argument that is not a try-error, raising an error if all arguments are try-errors.

Usage

1

Arguments

...

Expressions to be tested; usually outputs of try.

Value

The first argument that is not a try-error. Stops with an error if all are.

See Also

try, inherits

Examples

1
2
print(ERRVL(1,2,3)) # 1
print(ERRVL(try(solve(0)),2,3)) # 2


Search within the statnet.common package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.