Re: [R] Help with which()

From: Erik Iverson <>
Date: Thu, 24 Jul 2008 11:40:31 -0500

Ben Bolker wrote:
> Erik Iverson <iverson <at>> writes:

>> See

>> naw3 <at> wrote:

>>> I'm using which to find the position of a value in my data table

> [snip]
>> For example, when I do:
>>> where1<-which(Operons==3573.1,arr.ind=TRUE)
>>> it returns the position of that number and of 3573.15.

> This doesn't seem like the same issue as the FAQ.
> If there are really two elements in the array, one of
> which is 3573.1 and the other of which is 3573.15, they
> should not be treated as equal. Something else is going on.
> Could the original poster please send a small reproducible
> example?

Yes, the more I look at it, the more I agree. I just reacted when I saw x == 3573.1 ...

It would be nice to see a reproducible example! mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 Jul 2008 - 16:58:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Jul 2008 - 17:32:17 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive