[R] Help with which()

From: <naw3_at_duke.edu>
Date: Thu, 24 Jul 2008 11:31:58 -0400


Hi,

I'm using which to find the position of a value in my data table, and it is returning the correct position and the position of another number that differs by an extra decimal place. For example, when I do:

where1<-which(Operons==3573.1,arr.ind=TRUE)

it returns the position of that number and of 3573.15.

Is it possible to get the function to only return a position if the number matches exactly?

Thanks,
-Nina



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 Jul 2008 - 15:36:47 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 - 16:32:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive