[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
>orders, say order 2, 3, or 4. In otherwords neighbors of neighbors of
>neighbors. You get the idea. I know that I can use
>k) but this only gives me the k nearest neighbors and not of a
>Thanks in advance. 
>View this message in context:
>Sent from the R help mailing list archive at Nabble.com.
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list