distNNeigh {pgirmess} | R Documentation |
Computes distances to the nearest neighbour
Description
Computes distances to the nearest neighbour
Usage
distNNeigh(db)
Arguments
db |
A matrix or data.frame of points coordinates column 1 = x,column 2 = y. |
Details
Computes distances to the nearest neighbour for each line of a matrix of points coordinates
Value
A vector of distances
See Also
Examples
distNNeigh(cbind(rnorm(30),rnorm(30)))
[Package pgirmess version 2.0.3 Index]