Re: [R] nndist R vs. ArcGIS

From: <>
Date: Mon, 11 Apr 2011 11:54:50 -0700

Alexis wrote:
> Can anyone tell me why I would get different average nearest neighbor
> for the same set of coordinates between ArcGIS 10 and R? Sometimes the
> difference in distance is over 1.3 km.

spatstat::nndist calculates Euclidean distances rather than distances along the earth's surface, which is probably what you're getting from AG. A very short example illustrating the problem would be helpful in determining if I'm at all right; on the other hand I'm glad you're testing your results.

You might peek at the current thread "Geographic distance between lat-long points in R" for more information.


Curt Seeliger, Data Ranger
Raytheon Information Services - Contractor to ORD

	[[alternative HTML version deleted]]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 11 Apr 2011 - 18:58:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 11 Apr 2011 - 19:00:29 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive