Modify detection of NAs in numeric R vectors