SP2Rect | R Documentation |
It creates a symmetric matrix from its lower triangle.
SP2Rect(LT, dim)
LT |
a numeric vector with the lower triangle (stored columnwise) of the matrix we want to reconstruct. |
dim |
number of rows and columns of a resulting matrix. |
A matrix.
Arnošt Komárek arnost.komarek@mff.cuni.cz
SP2Rect(3, dim=1)
SP2Rect(c(1, 0.5, 2), dim=2)
SP2Rect(c(1, 0.5, 0.25, 2, -0.5, 3), dim=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.