if (!is.null(x)) y else x
R/base.R
grapes-nn-grapes.Rd
Infix if (!is.null(x)) y else x
x %nn% y
vectors
y if x is not NULL, else x
y
x
NULL
NULL %nn% 123456L #> NULL "abc" %nn% 123456L #> [1] 123456