Skip to content
Prev 174541 / 398503 Next

Selecting closest values

P_M <pmartinu at broadpark.no> [Sun, Mar 22, 2009 at 06:48:36PM CET]:
In the general case, the nn function from the RANN package (not part of CRAN
but found by rseek) does what you want, but for the one-dimensional case this
might be overkill.