powered by
Computes distances to the nearest neighbour
distNNeigh(db)
A vector of distances
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
knearneigh, knn2nb, nbdists
knearneigh
knn2nb
nbdists
distNNeigh(cbind(rnorm(30),rnorm(30)))
Run the code above in your browser using DataLab