[R] strange loss of accuracies under Win NT

Duncan Murdoch murdoch at stats.uwo.ca
Fri Jan 12 17:17:00 CET 2001


On Fri, 12 Jan 2001 10:57:56 +0100, you wrote in message
<3.0.32.20010112105756.00918e50 at 162.38.183.200>:

>Dear All,
>
>It's been several times I observed a very strange behaviour with R 1.2.0
>under Windows NT 4.0 (with sp5): accuracies are lost in many cases. Things
>are back to normal when I exit R and restart it. Here is an example of my
>last encounter with this:
>
>> bt1 <- c(7.3, 8.1, 8.4, 7, 6, 7.2, 6.7, 8.3, 9, 7.4, 8.6, 6.2, 6.9, 7.6,
>5.3, 5.6)
>> bt1
> [1] 7 8 8 7 6 7 6 8 9 7 8 6 6 7 5 5

 ...

log(2)
[1] 0,6931472

>I used R 1.1.1 on the same computer quite a lot, and never saw this. Has
>anyone seen this with R 1.2.0?

I haven't seen this, but my guess is that it's based on your
localization.  The last example shows that you're using a comma as the
decimal separator; probably the parser is getting confused by the use
of the period as the decimal separator in the input lines.

I've no idea why this comes and goes, though...

Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list