maxEarthDist: maximum distance between set of points

Description Usage Arguments Value Author(s) See Also Examples

Description

Maximum great-circle distance between points at lat-long coordinates. This is not computationally efficient. For large datasets, consider pages like http://stackoverflow.com/a/16870359.

Usage

1
maxEarthDist(lat, long, data, r = 6371)

Arguments

lat, long, data

Coordinates for earthDist

r

radius for earthDist

Value

Single number

Author(s)

Berry Boessenkool, berry-b@gmx.de, Jan 2017

See Also

earthDist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
d <- read.table(header=TRUE, text="
    x     y
9.19 45.73
6.55 58.13
7.71 71.44")

plot(d, asp=1, pch=as.character(1:3))
earthDist(y,x,d, i=2)
earthDist(y,x,d, i=3)

maxEarthDist(y,x,d)

OSMscale documentation built on May 2, 2019, 8:35 a.m.