haversine: Get the haversine distance between two points (x1, y1) and...

Description Usage Arguments Value References

View source: R/schools.R

Description

Get the haversine distance between two points (x1, y1) and (x2, y2) scaled between 0 and 1.

Usage

1
haversine(x1, y1, x2, y2)

Arguments

x1

longitude of object 1 (vector)

y1

latitude of object 1 (vector)

x2

longitude of object 2 (vector)

y2

latitude of object 2 (vector)

Value

numeric

References

http://andrew.hedges.name/experiments/haversine/


spew documentation built on Nov. 17, 2017, 7:36 a.m.