[R-sig-Geo] inter-point distance calcs

Jim Bouldin jrbouldin at ucdavis.edu
Mon Aug 10 20:50:43 CEST 2009


Last message got truncated somehow.  To repeat, I forgot to mention that I
need to get the distances into the following format.  Using Dylan's example
above:

Point Pair      Distance
1-2             3.6 
1-3             6.4
1-4             9.2
.               .
.               .
3-4             .
3-4             .
4-5             3.2

That is, I need to be able to create a column vector that labels each pair
of points, which I can then cbin with the distance vector into a new matrix
(I know how to create the distance vector, but not the identifier vector).
 The point pair identifiers (labels) will come from a column in the
original data matrix.
Thanks



More information about the R-sig-Geo mailing list