coalesce | R Documentation |
Returns first non-missing, non-null argument, otherwise NULL
.
We have to perform some pretty weird tryCatch
stuff internally,
so you should better not pass complex function calls into the arguments that can throw exceptions,
as these will be completely muffled, and return NULL
in the end.
coalesce(...)
... |
[any] |
[any].
f = function(x,y) { print(coalesce(NULL, x, y)) } f(y = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.