From pburns at pburns.seanet.com  Sat Mar 18 13:54:48 2006
From: pburns at pburns.seanet.com (Patrick Burns)
Date: Sat, 18 Mar 2006 12:54:48 +0000
Subject: [Rd] all.equal buglet(s)
Message-ID: <441C0318.9080506@pburns.seanet.com>

In the details section for 'all.equal' (in the paragraph
on complex values) it says 'all.numeric.numeric'.  I
presume that should be 'all.equal.numeric'.

When two integer vectors differ, it is possible to get
overflow:

 > set.seed(1)
 > r1 <- .Random.seed
 > set.seed(2)
 > r2 <- .Random.seed
 > all.equal(r1, r2)
[1] "Mean relative  difference: NA"
Warning message:
NAs produced by integer overflow in: target - current

A small change to 'all.equal.numeric' would fix that if it
is felt to be worthwhile.

Patrick Burns
patrick at burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")



[Rd] all.equal buglet(s)
Patrick Burns