[R] match and incomparables

2008-09-12 Thread McGehee, Robert
Hello, I was playing around with the newly implemented 'incomparables' argument in 'match' and realized the argument does not behave anything like I expected. Can someone explain what is going on here? Sorry if I'm misreading the documentation. match(1:3, 1:3, incomparables=1) [1] NA 2 3 #

Re: [R] match and incomparables

2008-09-12 Thread Adam D. I. Kramer
I can replicate this and also do not understand it. match(1:3,1:3,incomparables=5) [1] NA 2 3 match(1:3,1:3,incomparables=4) [1] 1 2 3 match(1:3,1:3,incomparables=3) [1] 1 2 3 match(1:3,1:3,incomparables=2) [1] 1 2 3 match(1:3,1:3,incomparables=1) [1] NA 2 3 ...every other integer

Re: [R] match and incomparables

2008-09-12 Thread Bert Gunter
. I. Kramer Sent: Friday, September 12, 2008 3:06 PM To: McGehee, Robert Cc: r-help Subject: Re: [R] match and incomparables I can replicate this and also do not understand it. match(1:3,1:3,incomparables=5) [1] NA 2 3 match(1:3,1:3,incomparables=4) [1] 1 2 3 match(1:3,1:3,incomparables=3) [1

Re: [R] match and incomparables

2008-09-12 Thread Prof Brian Ripley
:3,incom=1) [1] NA 2 3 Cheers, Bert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam D. I. Kramer Sent: Friday, September 12, 2008 3:06 PM To: McGehee, Robert Cc: r-help Subject: Re: [R] match and incomparables I can replicate this and also do