Description Usage Arguments Value Examples
View source: R/network_utils.R
Symmetrize square matrix
1 | symmetrize(x, upper_to_lower = TRUE)
|
x |
a square matrix |
upper_to_lower |
if TRUE, copies the upper triangle into the lower triangle; copies the lower triangle into the upper triangle otherwise. Defaults to TRUE. |
returns symmetrized version of x
1 2 3 | A = matrix(rnorm(9), nrow = 3)
A_sym = symmetrize(A, upper_to_lower = FALSE)
isSymmetric(A_sym)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.