powered by
%||%
%||% If length-0 alternative operator
a %||% b
a, unless it is length 0, in which case b (even in the case b is also length 0)
a
b
ANY. Element to select only if it is not length 0
ANY. Element to select if a is length 0
6 %||% 10 character() %||% "hi" NULL %||% "hi"
Run the code above in your browser using DataLab