Description Usage Arguments Details Value
Calculate the distance d (in kilometers) between two geographical points or between one geographical point and a vector of geographical points.
1 | d.geogr2km(pt.ref, pt.list, method)
|
pt.ref |
a list of 2 parameters:
|
pt.list |
a list or data frame of 2 parameters:
|
method |
the method to be used to evaluate d: |
The method = "fast"
assumes that the surface is flat. The
method = "haversine"
, slower, calculates the haversine distance by using the
function geosphere::distHaversine
. For regional earthquake catalogues, the error
of the fast method is insignificant.
the value(s) of the distance d between pt.ref
and pt.list
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.