Cited from the Book "Beginning Data Science in R"
Operations that involve NA are themselves NA. You cannot operate on missing data and get anything
but more missing values in return. This also means that if you compare two NAs, you get NA. Because NA is missing information, it is not even equal to itself.
If you want to check if a value is missing, you must use the function is.na.
No comments:
Post a Comment