Description Usage Arguments Details Value Examples
Reverse operation of upper.tri
or lower.tri
. Given a vector of
upper or lower triangular elements of a matrix
(optionally including the diagonal elements), returns the
corresponding symmetric matrix. The elements of the vector can be arranged by
column (the default) or by row.
1 |
x |
vector containing upper or lower triangular elements of a symmetric matrix |
lower |
x is from the lower triangle (default = |
byrow |
the elements in x are ordered row-wise (default = |
If |
NULL, x contains diagonal elements. Otherwise a value or vector of the appropriate length to be placed on the diagonal. |
Note that if x is a vector of the lower triagular elements given by column, this is equivalent to the upper triangular elements given by row. Similarly, if x is a vector of the lower triangular elements given by row, this is equivalent to the upper triangular elements given by column.
Symmetric matrix
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.