nndist {vegsoup}R Documentation

Nearest Neighbor Distances

Description

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

Usage

## 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

require(vegsoup)

data(barmstein)
x <- barmstein

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

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


[Package vegsoup version 0.2-7 Index]