waldo icon indicating copy to clipboard operation
waldo copied to clipboard

NaN and NA compare as equal

Open hadley opened this issue 2 years ago • 1 comments

waldo::compare(NA_real_, NaN)
#> ✔ No differences

Created on 2022-08-29 by the reprex package (v2.0.1)

hadley avatar Aug 29 '22 18:08 hadley

I suggest this fix #151

sorhawell avatar Aug 30 '22 07:08 sorhawell

I just noticed this issue as well. The comparison being equal was somewhat unexpected

bart1 avatar Nov 16 '22 08:11 bart1