Description Usage Arguments Value Author(s) References Examples
Create a new matrix by copying the lower(upper) triangle to the other half.
1 | reflect_triangle(m, from = c("lower", "upper"))
|
m |
a square matrix |
from |
lower or upper triangle |
a symmetric square matrix
1 2 3 | x <- matrix(1:9,3,3)
reflect_triangle(x, "lower")
reflect_triangle(x, "upper")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.