[R-sig-Geo] distance between centroids

Alessandra Carioli alessandracarioli at gmail.com
Thu Oct 23 12:48:11 CEST 2014


Dear all,

I am trying to compute the average distance between centroids and between neighbors, starting from a spatial polygon shape file.
What I am doing is compute the average distance between all centroids and compute the average distance between neighbors for different regions in order to better compare them. (Some are densely populated and have more centroids, others are the opposite).
Does anyone have any ideas? I am sure it should be pretty simple.

So far I have used dist but does not give me what I want.

Bests,

Ale
	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list