powered by
An internal function not intended for the user. Turns a matrix into a vector of the upper-triangular elements (arranged by row).
upper_tri_vec(m)
Matrix
# NOT RUN { # 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) # }
Run the code above in your browser using DataLab