Re: [R] Returning index of vector element matching specific value

2013-02-28 Thread davidwood
Thanks for the reply AK. From R FAQ 7.31: The only numbers that can be represented exactly in R's numeric type are integers and fractions whose denominator is a power of 2 I'm not sure though that this is the problem here, does this statement apply to only floating point numbers? Is 0.15 a

Re: [R] Returning index of vector element matching specific value

2013-02-28 Thread davidwood
Thanks very much AK so indeed they are floats! I'll be more careful next time when performing equality comparisons. Cheers, Dave -- View this message in context: http://r.789695.n4.nabble.com/Returning-index-of-vector-element-matching-specific-value-tp4659952p4659959.html Sent from the R help