Displaying 1 result from an estimated 1 matches for "tp18363290p18375656".
2008 Jul 09
4
Find the closest value in a list or matrix
I have a long list of numbers [3.4,5.4,3.67,....], and I basically want to
find the index of the number closest to this number that I have, let's say
5.43. How would I do this without writing a for loop (I have to do this many
times for several lists)? Is there a "lookup" function in R?
Thanks!
--
View this message in context: