powered by
Calculate distance between a pair of coordinates
latlon2dist (coords)
4-element vector of coordinates with format: (lat1, lon1, lat2, lon2)
(lat1, lon1, lat2, lon2)
Returns the great circle distance distance between the pair of coordinates
coord2dist
# NOT RUN { coords=c(32, -125, 43, -130) # Compute great circle distance latlon2dist(coords) # }
Run the code above in your browser using DataLab