| op-null-default | R Documentation |
Returns x if it is not NULL, otherwise returns y.
Equivalent to rlang::%||% but without requiring that dependency.
x %||% y
x |
Value to test |
y |
Fallback value if |
x if not NULL, otherwise y
NULL %||% "default"
"value" %||% "default"
list()$missing %||% 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.