Description Usage Arguments Value Author(s) References
Set a default value if an object is NOT null
1 | set_if_not_null(lhs, rhs)
|
lhs |
An object to set if it's NOT null |
rhs |
The value to provide if x is NOT null |
lhs if lhs is null, else rhs
Hadley Wickham
https://adv-r.hadley.nz/functions.html#missing-arguments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.