Skip to content
Prev 301074 / 398503 Next

Nearest Neighbors

I was wondering if there is a way in R to find k nearest neighbors of various
orders, say order 2, 3, or 4. In otherwords neighbors of neighbors of
neighbors. You get the idea. I know that I can use knearneigh(matrix.data,
k) but this only gives me the k nearest neighbors and not of a particular
order. 


Thanks in advance. 



--
View this message in context: http://r.789695.n4.nabble.com/Nearest-Neighbors-tp4637618.html
Sent from the R help mailing list archive at Nabble.com.