Converted a vectorized upper triangular correlation matrix back to its full matrix form.
cor_mat(
x_diag,
diag_val = NA,
names = NULL,
newOrder = NULL,
lowerOnly = FALSE
)A square correlation matrix
The vectorized upper triangular correlation matrix.
The value to put on the diagonals of the correlation matrix.
Default: NA.
(Optional) row/column names.
(Optional) new index order.
Set the upper triangle to NA? Default: FALSE.