Description Usage Arguments Details Value See Also Examples
Fold a square matrix by collapsing lower triangle on upper triangle, or vice versa, through addition.
1 |
x |
square numeric matrix |
direction |
character, one of |
By default, for direction=="upper"
, the function takes the values in
the lower triangle of x
and adds them symetrically to the values in
the upper triangle. The values on the diagonal remain unchanged. The lower
triangle is filled with 0s. If direction=="lower"
the upper triangle
is collapsed on to the lower triangle.
Square matrix of the same dim
as x
with the lower
(upper) triangle folded onto the upper (lower) triangle.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.