Open utterances-bot opened 3 years ago
https://www.njtierney.com/post/2021/06/30/subsetting/
Did happen to me before, it took quite some investigation time. An easy workaround is to use which(), which will discard the NAs.
which()
Some Unexpected Things About Subsetting | Credibly Curious
https://www.njtierney.com/post/2021/06/30/subsetting/