Set a default value if an object is NOT null
lhs %iff% rhs
Arguments
lhs |
An object to set if it's NOT null |
rhs |
The value to provide if x is NOT null |
Value
lhs if lhs is null, else rhs
References
https://adv-r.hadley.nz/functions.html#missing-arguments
Author
Hadley Wickham