I don't see the "obvious" portion. What I am looking for is an output that gives me an n*k matrix n (x,y) pairs k neighbors but using order say 4. -- View this message in context: http://r.789695.n4.nabble.com/Nearest-Neighbors-tp4637618p4637648.html Sent from the R help mailing list archive at Nabble.com.