3.2 Comparing elements, NA, NaN, Inf (2)

Testing equality on NA is not correct: What does “I do not know” == “I do not know” could mean. We should use the function is.na().

We should also use is.finite, and is.nan (all of them are vectorized)