dist2 | R Documentation |
dist2
takes the matrices of coordinates
coords1
and coords2
and returns the
inter-Euclidean distances between coordinates.
dist2(coords1, coords2)
coords1 |
An |
coords2 |
An |
An nr1 \times nr2
matrix of Euclidean distances.
Joshua French
dist, dist1
x1 <- matrix(rnorm(30), ncol = 3)
x2 <- matrix(rnorm(60), ncol = 3)
dist2(x1, x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.