From nklepeis@uclink.berkeley.edu  Fri Nov  1 08:06:11 2002
From: nklepeis@uclink.berkeley.edu (nklepeis@uclink.berkeley.edu)
Date: Fri, 1 Nov 2002 09:06:11 +0100 (MET)
Subject: Inconsistent results with %in% (PR#2244)
Message-ID: <200211010806.JAA03783@pubhealth.ku.dk>

Full_Name: Neil Klepeis
Version: 1.6.0
OS: Redhat Linux 7.3
Submission from: (NULL) (165.247.212.88)


%in% does not work properly for some numeric values as shown here:
> 1.253 %in% seq(1.1,1.3,by=0.001)
[1] FALSE
> 1.252 %in% seq(1.1,1.3,by=0.001)
[1] TRUE
> 1.254 %in% seq(1.1,1.3,by=0.001)
[1] TRUE 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Inconsistent results with %in% (PR#2244)
nklepeis@uclink.berkeley.edu