| funlogic | R Documentation |
Creates a function which returns the corresponding logical
operation between what f1 and f2 return.
f1 %&% f2 f1 %|% f2 f1 %xor% f2
f1, f2 |
Arbitrary predicate functions. |
To obtain the logical negation of what a function f returns,
use base function Negate.
is.null.na <- is.null %|% is.na all(is.null.na(NA), is.null.na(NULL)) # returns TRUE