coord2dist {synchrony} | R Documentation |
coord2dist
Description
Calculate distance between all pairs of sites
Usage
coord2dist (coords, is.latlon = TRUE, lower.tri = TRUE)
Arguments
coords |
|
is.latlon |
are coordinates latitudes/longitudes? Default is |
lower.tri |
Return lower triangular part of the distance matrix? Default is |
Value
Returns the distance between all pairs of sites
Author(s)
Tarik C. Gouhier (tarik.gouhier@gmail.com)
Examples
coords=rbind(c(32, -125), c(43, -130))
# Compute great circle distance
coord2dist(coords)
[Package synchrony version 0.3.8 Index]