powered by
set default value for object, including NULL and NA and length 0.
x %|||% y
character/numeric/factor/list. An object which could be checked by is.na().
is.na()
ANY. A default value
%|||%: x unless NULL, NA nor length(x) == 0, otherwise y
%|||%
x
NULL
NA
length(x) == 0
y
# NOT RUN { 1 %|||% 1 NA %|||% 1 NULL %|||% 1 # }
Run the code above in your browser using DataLab