NA | TRUEreturns TRUEbecause of |, that is, an OR-operator that returns true when at least one condition is satisfied.
Similarly, it NA | FALSEwill return NAbecause it cannot be determined.
On the other hand, with the &AND operator , cases are reversed. In addition, it is mathematical logic and does not apply to the R-language.
source
share