dist2full: Converts a lower triangular distance matrix to a full distance matrix
Description
Converts a lower triangular distance matrix to a full distance matrix
with zeroes in the diagonal.
The input is usually the result of the dist function
in the stats package.
This function is adapted from Everitt's book
(everitt:2004;textualnnspat)
Usage
dist2full(dis)
Value
A square (symmetric) distance matrix with zeroes in the diagonal.
Arguments
dis
A lower triangular matrix,
resulting from the dist
function in the stats package