This function help users to easily make an upper triangular matrix using a symmetric matrix.
make_upper_tri(x, diag = NA)
A symmetric matrix
What show in the diagonal of the matrix. Default to NA.
NA
An upper triangular matrix
# NOT RUN { library(metan) m <- cor(data_ge2[,5:10]) make_upper_tri(m) # }
Run the code above in your browser using DataLab