Format or generate a distance matrix.
numeric vector or matrix.
x is a vector as created by the
dist function, it converts
it into a fulll square, symmetric matrix.
x is a distance matrix, i.e. square, symmetric amd with zero
diagonal elements, it returns the flattened lower triangular submatrix.
Returns a matrix if
x is a vector,
and a vextor if
x is a matrix.
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.