R: Convert Indices from Distance Object to Matrix

diss.index {dissUtils} | R Documentation

## Convert Indices from Distance Object to Matrix

### Description

Given an index into a distance object of Size N, finds the coordinates of the same pairwise dissimilarity in an N by N matrix of dissimilarities

### Usage

    diss.index(index, N)

### Arguments

`index` | the position of the item in the distance object
`N` | the Size of the distance object, the number of points it compares

### See Also

`dist`

### Examples

      ## The function is currently defined as
      function (index, N)
      {
        i <- floor(.raw.i(n, ix));

        return(c(i = i, j = .calc.j(i, n, ix)));
      }

[Package dissUtils version 1.0 Index]