null_coalesce {LBDiscover} | R Documentation |
Null coalescing operator
Description
Returns the first argument if it is not NULL or empty, otherwise returns the second argument.
Usage
x %||% y
Arguments
x |
An object to test if NULL or empty |
y |
An object to return if x is NULL or empty |
Value
Returns x if x is not NULL, not empty, or not a missing XML node, otherwise returns y.
Examples
NULL %||% "default" # returns "default"
"value" %||% "default" # returns "value"
[Package LBDiscover version 0.1.0 Index]