try_default {plyr} | R Documentation |
try_default
wraps try so that it returns a default value in the case of error.
try_default(expr, default = NA, quiet = FALSE)
expr |
expression to try |
default |
default value in case of error |
quiet |
tryNULL
provides a useful special case when dealing with lists.
Hadley Wickham <h.wickham@gmail.com>