[R] Finding the neighbors of the point

From: Leaf Sun <leaflovesun_at_yahoo.ca>
Date: Sat 22 Oct 2005 - 00:59:17 EST


Dear all,

I got point data of trees. I was wondering if anybody has experience in searching the neighbors within a specified distance efficiently.

X    Y     Z
99 	34	 65
98 	35	 29
98 	34	 28
99 	33	 33
98 	32	 23
99 	33	 21
99 	33	 22
99 	32	 24
99 	30	 23

    ...

What I want to do is : searching for the neighbors with a distance R for each tree & the neighbor must have a bigger Z.

The data set is huge so the R-codes is working slowly when I search it without subset it.

Any suggestion would be much appreciated!

Leaf



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Oct 22 01:06:26 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:46 EST