Dear Professor Ripley

thank you for your reply.


 >  NaN +NA
 [1] NaN
 >  NA + NaN
 [1] NA

I thought "+" was commutative by definition. What's going on?

It is clearly not under your compiler/OS. We could add a configure test for broken systems and fix it in arithmetic.c but it hardly seems worthwhile.

[snip]

 > (Both give NA under linux, so it looks like a version-specific issue).

Linux on that hardware? It might be a chip issue.


Sorry, that should read "Both give NA under linux on an i686 system, RedHat Linux 2.4.18"

In any event, "+" appears to be associative (which is what I was interested in).

best wishes

rksh


-- Robin Hankin Uncertainty Analyst Southampton Oceanography Centre SO14 3ZH tel +44(0)23-8059-7743 [EMAIL PROTECTED] (edit in obvious way; spam precaution)

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to