powered by
Transform a distance matrix to a 3-column matrix in which the first 2 columns indicate the pairwised samples/species names.
dist.3col(dist)
a square matrix or distance object with column names and row names.
1st column, the first item of pairwised two items
2nd column, the second item of pairwised two items
3rd column, distance value of the pairwised two itmes
In many cases, a 3-column matrix is easier to use than a distance matrix.
# NOT RUN { data(tda) comm=tda$comm bray=beta.g(comm,dist.method="bray") bray.3col=dist.3col(bray) # }
Run the code above in your browser using DataLab