powered by
Creates a function which returns the corresponding logical operation between what f1 and f2 return.
f1
f2
f1 %&% f2f1 %|% f2f1 %xor% f2
f1 %|% f2
f1 %xor% f2
Arbitrary predicate functions.
To obtain the logical negation of what a function f returns, use base function Negate.
f
base
Negate
# NOT RUN { is.null.na <- is.null %|% is.na all(is.null.na(NA), is.null.na(NULL)) # returns TRUE # }
Run the code above in your browser using DataLab