NULL
R/op-null-default.R
op-null-default.Rd
A backport of %||% available in R versions from 4.4.0.
%||%
x %||% y
If x is NULL or length 0, will return y; otherwise returns x.
x
y
1 %||% 2 #> [1] 1 NULL %||% 2 #> [1] 2