latlon2dist {synchrony} | R Documentation |
latlon2dist
Description
Calculate distance between a pair of coordinates
Usage
latlon2dist (coords)
Arguments
coords |
4-element vector of coordinates with format: |
Value
Returns the great circle distance distance between the pair of coordinates
Author(s)
Tarik C. Gouhier (tarik.gouhier@gmail.com)
See Also
Examples
coords=c(32, -125, 43, -130)
# Compute great circle distance
latlon2dist(coords)
[Package synchrony version 0.3.8 Index]