powered by
Creates a sparse pairwise distance matrix of a coordinate set
PWMatrix(Coords)
- Two-dimensional array of longitudinal and latitudinal coordinates output from CoordCollapse() function
Returns a sparse pairwise distance matrix of great circle distances between pairs of points
longs<-runif(10,-22,33) lats<-runif(10,-22,33) Coords<-CoordCollapse(longs,lats) PWMatrix(Coords)
Run the code above in your browser using DataLab