Description Usage Arguments Value Author(s) References See Also Examples
Distance matrix of a set of points, or between two sets of points
1 |
x |
longitude/latitude of point(s). Can be a vector of two numbers, a matrix of 2 columns (first one is longitude, second is latitude) or a SpatialPoints* object |
y |
Same as |
fun |
A function to compute distances (e.g., distCosine or distGeo) |
Matrix of distances
Robert Hijmans
http://en.wikipedia.org/wiki/Great_circle_distance
distGeo, distCosine, distHaversine, distVincentySphere, distVincentyEllipsoid
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.