Learn R Programming

dissUtils (version 1.0)

diss.index: 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

Run this code
  ## 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)));
  }

Run the code above in your browser using DataLab