error.out | R Documentation |
Alternative return for error statements.Return alternative if the value of expression is erroneous
error.out(test, alternative = "")
test %eo% alternative
test |
an object to return |
alternative |
alternative object to return |
value of test if error, else return value of alternative
# The following statement would produce
# error because 'stat1' does not exist
# stat1 + 1
# To prevent the statement from
# stopping the process, when can have alternative out
alt = 0
error.out(stats1 + 1, alt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.