distances | R Documentation |
Calculates pairwise distances between two sets of points.
distances(a, b)
a |
matrix containing a set of coordinates. |
b |
matrix containing another set of coordinates. |
A matrix with pairwise distances between the two sets of points.
dists <- distances(example.data$traps, example.data$mask)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.