In R, NAs are not recognized by basic functions but are by some others
I do not understand why R recognizes NA values in one instance but not in all others.
The vector is numeric, missing values are NA but all code for subseting or any for-if loop systematically fail to capture the missing values. For example, the code: