View source: R/cdtSrcDistance_functions.R
distance.Matrix | R Documentation |
Distance matrix between two sets of points
distance.Matrix(x, y, spheric = FALSE)
x |
a 2 column matrix or data.frame (first column is longitude, second is latitude); or a SpatialPoints*, SpatialPixels* or SpatialGrid* object. |
y |
Same as |
spheric |
If |
Matrix of distances. The row represent y
and the column x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.