Learn R Programming

GeoRange (version 0.1.0)

PWMatrix: 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

Run this code
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