| arcdist {ssBase} | R Documentation |
Calculates the arc-distance on the spherical surface between one epicentral location and a set of other locations.
arcdist(point1, points2, radius = 6371)
point1 |
a vector containing the longitude and latitude of the “central” point. |
points2 |
a matrix containing the other points, one in each row. The first column contains the longitudes and the second contains the latitudes. |
radius |
the radius of the sphere, default is 6371. |
A vector of arclengths the same length as number of rows in points2.
David Harte, 2002
x <- arcdist(c(174, -42), cbind(c(174, 174, 175), c(-42, -43, -43))) print(x)