distance | R Documentation |
Calculate the distance between two points based on their latitude and longitude.
distance(long1, lat1, long2, lat2)
long1 |
The longitude for point one. |
lat1 |
The latitude for point one. |
long2 |
The longitude for point two. |
lat2 |
The latitude for point two. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.