distNNeigh | R Documentation |
Computes distances to the nearest neighbour
distNNeigh(db)
db |
A matrix or data.frame of points coordinates column 1 = x,column 2 = y. |
Computes distances to the nearest neighbour for each line of a matrix of points coordinates
A vector of distances
knearneigh
, knn2nb
, nbdists
distNNeigh(cbind(rnorm(30),rnorm(30)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.