distNNeigh: Computes distances to the nearest neighbour

View source: R/distNNeigh.r

distNNeighR 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)))

pgirmess documentation built on May 29, 2024, 4:26 a.m.