nndist {vegsoup} | R Documentation |
Identifies the nearest neighbor of each plot based on dissimilarity matrix.
## S4 method for signature 'Vegsoup' nndist(X, ...)
X |
A |
... |
Not used. |
Nothing here yet!
Returns a numeric vector of distances equal to the number of plots. The identified nearest neighboring plot is given as attribute. See ‘Examples’.
Roland Kaiser
require(vegsoup) data(barmstein) x <- barmstein vegdist(x) <- "bray" ( r <- nndist(x) ) # get nearest neighbour plot names attr(r, "neighbour")