Description Usage Arguments Examples
An internal function not intended for the user. Turns a matrix into a vector of the upper-triangular elements (arranged by row).
1 |
m |
Matrix |
1 2 3 4 5 6 | # make a simple correlation matrix
x = rnorm(10); y = rnorm(10); z = rnorm(10)
mat = cor( data.frame(x,y,z) )
# turn into into vector
upper_tri_vec(mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.