Skip to contents

Infix operator for if (!is.null(x)) y else x statements

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