R: Find Neighbor Indices

neighbors.identify {dissUtils} | R Documentation

## Find Neighbor Indices

### Description

Uses a distance object and a vector of known distances to identify the neighbors that correspond to those distances.

### Usage

    neighbors.identify(neighbor.matrix, all.dists)

### Arguments

`neighbor.matrix` | a matrix of distances to neighbors
`all.dists` | either a distance object or a matrix of distances such as is produced by `diss`

### Value

a `dim(neighbor.matrix)` matrix of integer indices between 1 and `all.dists$Size` or `ncol(all.dists)`

### See Also

`diss`, `dist`

[Package dissUtils version 1.0 Index]