Computes the mean of the distances from each point to its neth
nearest neighbor.
Usage
nn(distmat, ne = 1)
Arguments
distmat
symmetric distance matrix (not a dist-object).
ne
integer.
Value
numerical.
References
Hennig, C. and Hausdorf, B. (2004) Distance-based parametric bootstrap
tests for clustering of species ranges. Computational Statistics
and
Data Analysis 45, 875-896.
data(kykladspecreg)
# Note: If you do not use the installed package, replace this by# kykladspecreg <- read.table("(path/)kykladspecreg.dat")j <- jaccard(t(kykladspecreg))
nn(j,4)