Extract a subset of values from a distance matrix. This function also works
to re-arrange the rows of a distance matrix, if they are provided in the
desired order.
Usage
dist_subset(d, idx)
Arguments
d
A distance matrix object of class dist.
idx
Indices specifying the subset of distances to extract.