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