[R] The behavior of match function

ronggui 042045003 at fudan.edu.cn
Fri Oct 21 05:19:48 CEST 2005


> 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 at gmail.com
Blog:http://sociology.yculblog.com




More information about the R-help mailing list