distance2df: Convert a distance matrix to a data frame
Description
This function converts a distance matrix into a data frame with three columns: from, to, count.
The rows and columns of the matrix are all unique names from the 'from' and 'to' columns,
Usage
distance2df(distance_matrix)
Value
A data frame containing three columns: from, to, count.
Arguments
distance_matrix
A distance matrix where rows and columns are all unique names from 'from' and 'to' columns.