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 #
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
. 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
: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
4 matches
Mail list logo