Displaying 1 result from an estimated 1 matches for "r42638".
Did you mean:
r42630
2007 Aug 29
1
NA and NaN in function identical
...and all 'NA' of the same type are equal).
However, we have
x <- NaN
y <- as.double(NA)
x # [1] NaN
y # [1] NA
identical(x,y) # [1] TRUE
In my opinion, NaN and as.double(NA) should be distinguished as the
help page suggests.
Tested under R version 2.5.1 Patched (2007-08-19 r42638) on Linux (CPU Xeon).
Petr Savicky.