gcdist | R Documentation |
Great-circle distance function to calculate spatial distance from lat-long data. Called by various functions.
gcdist(x, y)
x |
vector of longitudes. |
y |
vector of latitudes. |
The distance in km is returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.