Description Usage Arguments Details Value Author(s) References Examples
Calculates the distance between two points on the globe given latitude and longitude in decimal degrees and returning distance in kilometers.
| 1 | CalcDistance(initialLat, initialLong, finalLat, finalLong)
 | 
| initialLat | initial Latitude | 
| initialLong | initial Longitude | 
| finalLat | ending Latitude | 
| finalLong | ending Longitude | 
Data must be provided in decimal degrees (e.g. 162.546).  Longitude values west of the prime meridian are 0 to -180.
Latitude values south of the equator are 0 to -90.  This function is primarily used internally in the GPStable and 
GeoReference functions.
Distance in Kilometers
Brian Battaile
https://www.movable-type.co.uk/scripts/latlong.html
| 1 2 3 | ##Distance from New York to Los Angeles given Latitude and Longitude of New York and Los Angeles.
Howfar<-CalcDistance(40.7697,-73.9735,34.0522,-118.2428)
Howfar
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.