Description Usage Arguments Value Examples
View source: R/distmat_to_df.R
Input a distance matrix, with which a dataframe will be returned with the three columns of "row", "col", and "dist". The first two correspond with the rows and columns in the distance matrix, and the last refers to their crossing point, where the distance between them is given.
1 | distmat_to_df(dist_matrix)
|
dist_matrix |
A distance matrix. |
A dataframe with the columns "row", "col", and "dist".
1 2 3 | # Example 1: Dutch distance matrix to Dutch dataframe
data(distDutch)
distmat_to_df(distDutch)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.