Description Usage Arguments Value
Returns a function or value if the 'object' is null, otherwise the original the 'object' . Useful in functions when default values are provided for arg = NULL
1 | if_null(object, when_null)
|
object |
The object to evaluate is.null |
when_null |
An object, value, or code to evaluate when object is NULL |
A non-NULL 'object' or 'when_null' if 'object' is NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.