powered by
Computes distances to the nearest neighbour
distNNeigh(db)
A matrix or data.frame of points coordinates column 1 = x,column 2 = y.
A vector of distances
Computes distances to the nearest neighbour for each line of a matrix of points coordinates
knearneigh, knn2nb, nbdists
knearneigh
knn2nb
nbdists
# NOT RUN { distNNeigh(cbind(rnorm(30),rnorm(30))) # }
Run the code above in your browser using DataLab