latlon2dist: latlon2dist

Description Usage Arguments Value Author(s) See Also Examples

Description

Calculate distance between a pair of coordinates

Usage

1
latlon2dist (coords)

Arguments

coords

4-element vector of coordinates with format: (lat1, lon1, lat2, lon2)

Value

Returns the great circle distance distance between the pair of coordinates

Author(s)

Tarik C. Gouhier (tarik.gouhier@gmail.com)

See Also

coord2dist

Examples

1
2
3
coords=c(32, -125, 43, -130)
# Compute great circle distance
latlon2dist(coords)

Example output

synchrony 0.2.3 loaded.
[1] 1299.956

synchrony documentation built on March 26, 2020, 7:14 p.m.