[Rd] Benefit of treating NA and NaN differently for numerics

Saptarshi Guha saptarshi.guha at gmail.com
Thu Dec 31 21:43:43 CET 2009


Hello,
I notice in main/arithmetic.c, that NA and NaN are encoded
differently(since every numeric NA comes  from R_NaReal which is
defined via ValueOfNA)
. What is the benefit of treating these two differently? Why can't NA
be a synonym for NaN?

Thank you
Saptarshi
(R-2.9)



More information about the R-devel mailing list