Missing values (3)

In most cases an NA value (vector element) is regarded ‘missing so we can’t (always) know the outcome’:

  • NAin comparisons will always return NA (see before).
  • NA in boolean algebra: sometimes the outcome is known, sometimes not (hence NA):
    • TRUE & NA is NA but FALSE & NA is FALSE
    • TRUE | NA is TRUE but FALSE | NA is NA