dist.3col | R Documentation |
Transform a distance matrix to a 3-column matrix in which the first 2 columns indicate the pairwised samples/species names.
dist.3col(dist)
dist |
a square matrix or distance object with column names and row names. |
In many cases, a 3-column matrix is easier to use than a distance matrix.
name1 |
1st column, the first item of pairwised two items |
name2 |
2nd column, the second item of pairwised two items |
dis |
3rd column, distance value of the pairwised two itmes |
Version 1: 2015.5.17
Daliang Ning
# In this example, dist.3col transforms the distance object # of Bray-Curtis dissimilarity to 3-column matrix. data("example.data") comm=example.data$comm BC=vegan::vegdist(comm) BC3c=dist.3col(BC)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.