dist.3col {NST} | R Documentation |
Transform distance matrix to 3-column matrix
Description
Transform a distance matrix to a 3-column matrix in which the first 2 columns indicate the pairwised samples/species names.
Usage
dist.3col(dist)
Arguments
dist |
a square matrix or distance object with column names and row names. |
Details
In many cases, a 3-column matrix is easier to use than a distance matrix.
Value
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 |
Note
Version 1: 2015.5.17
Author(s)
Daliang Ning
Examples
data(tda)
comm=tda$comm
bray=beta.g(comm,dist.method="bray")
bray.3col=dist.3col(bray)
[Package NST version 3.1.10 Index]