Inconsistent results with %in% (PR#2244)
nklepeis@uclink.berkeley.edu
nklepeis@uclink.berkeley.edu
Fri, 1 Nov 2002 09:06:11 +0100 (MET)
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._