View source: R/struc__upperTriangleToSquareMatrix.R
upperTriangleToSquareMatrix | R Documentation |
This function retrieves IDs from the first two columns and values from the third column. Note that this function assumes the diagonal of the output matrix is comprised of a constant.creases.
upperTriangleToSquareMatrix(d, diag_val = 0)
d |
Input data frame |
diag_val |
The value on the diagonal (Default: NA) |
A synmetric matrix
Yu Wan (wanyuac@126.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.