try_default {plyr}R Documentation

Try, with default in case of error

Description

try_default wraps try so that it returns a default value in the case of error.

Usage

try_default(expr, default = NA, quiet = FALSE)

Arguments

expr expression to try
default default value in case of error
quiet

Details

tryNULL provides a useful special case when dealing with lists.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

tryapply


[Package plyr version 0.1.5 Index]