distance_matrix
makes distance matrices (complete and partial) from
distances
objects.
distance_matrix(distances, indices = NULL)
A distances
object.
If NULL
, the complete distance matrix is made.
If integer vector with point indices,
a partial matrix including only the indicated data points is made.
Returns a distance matrix of class dist
.