[R] The behavior of match function

From: ronggui <042045003_at_fudan.edu.cn>
Date: Fri 21 Oct 2005 - 13:19:48 EST


> x<-1:10
> y<-x+1e-20
> x
 [1] 1 2 3 4 5 6 7 8 9 10
> y

 [1] 1 2 3 4 5 6 7 8 9 10
> identical(x,y)
[1] FALSE
> match(x,y)
 [1] 1 2 3 4 5 6 7 8 9 10

What's the principle the function use to determine if x match y?

Thank you!                                  

2005-10-21



Deparment of Sociology
Fudan University

My new mail addres is ronggui.huang@gmail.com Blog:http://sociology.yculblog.com



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Oct 21 13:33:35 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:46 EST