Skip to contents

Infix if (!is.null(x)) y else x

Usage

x %nn% y

Arguments

x, y

vectors

Value

y if x is not NULL, else x

Examples

NULL %nn% 123456L
#> NULL

"abc" %nn% 123456L
#> [1] 123456