%||%
(if length-0) alternative operator
Examples
6 %||% 10
#> [1] 6
character() %||% "hi"
#> [1] "hi"
NULL %||% "hi"
#> [1] "hi"
%||%
(if length-0) alternative operator
6 %||% 10
#> [1] 6
character() %||% "hi"
#> [1] "hi"
NULL %||% "hi"
#> [1] "hi"