mat2df | R Documentation |
Turns a distance matrix into a data frame of pairwise distances.
mat2df(M)
M |
a square pairwise matrix (e.g., of distances). |
Data frame with pairwise distances.
set.seed(42)
M <- matrix(rnorm(25), nrow=5)
M
mat2df(M)
M <- matrix(rnorm(25), nrow=5, dimnames=list(letters[1:5], letters[1:5]))
M
mat2df(M)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.