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

knearneigh, knn2nb, nbdists

Examples

distNNeigh(cbind(rnorm(30),rnorm(30)))

[Package pgirmess version 2.0.3 Index]