[R] Nearest Neighbors

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Tue Jul 24 19:58:07 CEST 2012


Isn't the obvious solution to subtract the set for level n-1 from the set for level n?
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

olemissrebs1123 <adrian.wilsonphd at gmail.com> wrote:

>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.
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list