PWMatrix {GeoRange} | R Documentation |
Creates a sparse pairwise distance matrix of a coordinate set
Description
Creates a sparse pairwise distance matrix of a coordinate set
Usage
PWMatrix(Coords)
Arguments
Coords |
- Two-dimensional array of longitudinal and latitudinal coordinates output from CoordCollapse() function |
Value
Returns a sparse pairwise distance matrix of great circle distances between pairs of points
Examples
longs<-runif(10,-22,33)
lats<-runif(10,-22,33)
Coords<-CoordCollapse(longs,lats)
PWMatrix(Coords)
[Package GeoRange version 0.1.0 Index]