dist1 | R Documentation |
dist1
takes a matrix of coordinates and returns the
Euclidean distance matrix of the coordinates. It does this
using a compiled C
program, so it is faster than the
builtin R dist
function.
dist1(coords)
coords |
An |
An nr \times nr
matrix of Euclidean distances.
Joshua French
dist, dist2
x <- matrix(rnorm(30), ncol = 3)
dist1(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.