From ligges at statistik.tu-dortmund.de  Sat Oct 11 21:25:11 2008
From: ligges at statistik.tu-dortmund.de (ligges at statistik.tu-dortmund.de)
Date: Sat, 11 Oct 2008 21:25:11 +0200 (CEST)
Subject: [Rd] match() (PR#13135)
Message-ID: <20081011192511.1E50E282C787@mail.pubhealth.ku.dk>



wchen at stat.tamu.edu wrote:
> Full_Name: Willa Chen
> Version: 2.7.2
> OS: Window XP
> Submission from: (NULL) (128.122.182.70)
> 
> 
> 
> 
> The match function does not return value properly. See an example below. 
> 
> 
>> a<-seq(0.6,1,by=0.01)
>> match(0.88,a)
> [1] 29
>> match(0.89,a)
> [1] NA

This is the FAQ "Why doesn't R think these numbers are equal?", but not 
a bug at all.

Uwe Ligges



>> match(0.90,a)
> [1] NA
>> match(0.91,a)
> [1] NA
>> match(0.92,a)
> [1] NA
>> match(0.93,a)
> [1] NA
>> match(0.94,a)
> [1] 35
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] match() (PR#13135)
ligges at statistik.tu-dortmund.de