I have a question about arithmetic behaviour in R.
Regard the following piece of code
> NaN + NA
[1] NaN
>
>
> NaN + as.integer(NA)
> NA
So, I am confused that these two additions give different results.
Does anybody know if this is really wanted behaviour or just some kind of bug?
Thanks in advance
From
?NaN: