MAT_vector2full | R Documentation |
Returns a symmetric matrix.
MAT_vector2full(x, diag = FALSE, byrow = FALSE, diag_value = 0)
x |
(vector) A vector of values. |
diag |
(logical scalar) Whether the diagonal values are included or not. Defaults to FALSE. |
byrow |
(logical scalar) Whether the values were extracted by row or column. Defaults to FALSE which matches the output from e.g. dist(). |
diag_value |
(scalar) Which value to fill in the diagonal if necessary. |
MAT_vector2full(1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.