The %in% -infix in R appears to work as expected with NA valued vector in either side of the expression (example below). I would like to ask if this behaviour is well-defined and are there major caveats using such expressions?
c(0, NA) %in% c(1, 2, 3, NA)