Hi cindy, depends on your data type. It it is points, give a look at spatstat package.
bests milton On Sun, Aug 9, 2009 at 5:03 PM, cindy Guo <cindy.g...@gmail.com> wrote: > Hi, All, > > I am wondering if there is any package which can give the index of the k > nearest neighbors. > > Thank you, > > Cindy > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@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.