nndist: Nearest Neighbor Distances

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Identifies the nearest neighbor of each plot based on dissimilarity matrix.

Usage

1
2
## S4 method for signature 'Vegsoup'
nndist(X, ...)

Arguments

X

A Vegsoup* object.

...

Not used.

Details

Nothing here yet!

Value

Returns a numeric vector of distances equal to the number of plots. The identified nearest neighboring plot is given as attribute. See ‘Examples’.

Author(s)

Roland Kaiser

See Also

outlier, as.dist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
require(vegsoup)

data(barmstein)
x <- barmstein

vegdist(x) <- "bray"
( r <- nndist(x) )

# get nearest neighbour plot names
attr(r, "neighbour")

vegsoup documentation built on Feb. 24, 2021, 3 a.m.