[R] The behavior of match function

2005-10-20 Thread ronggui
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

Re: [R] The behavior of match function

2005-10-20 Thread Marc Schwartz
On Fri, 2005-10-21 at 11:19 +0800, ronggui wrote: 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?