[R] equating approximate values

vamshi999 vamshi999 at gmail.com
Mon Dec 5 01:04:22 CET 2011

this is exactly what i wanted. 

How to i select only the minimum value from this?. 

thank you 

My apologies: you need an abs() call as well:

which(abs(outer(x, y, "-")) < threshold, arr.ind = TRUE)


View this message in context: http://r.789695.n4.nabble.com/equating-approximate-values-tp4157551p4158691.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list