| latlon2dist | 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)
coord2dist
coords=c(32, -125, 43, -130)
# Compute great circle distance
latlon2dist(coords)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.