latlon2dist {synchrony} | R Documentation |
Calculate distance between a pair of coordinates
latlon2dist (coords)
coords |
4-element vector of coordinates with format: |
Returns the great circle distance distance between the pair of coordinates
Tarik C. Gouhier (tarik.gouhier@gmail.com)
coords=c(32, -125, 43, -130)
# Compute great circle distance
latlon2dist(coords)