I have two symmetrical matrices of the same lengths (one contains correlation coefficients and the other contains p-values).
I’m trying to make a matrix such that the upper.tri contains correlation coefficients and the lower.tri contains the relevant p-values.
Assuming your matrices are
correlandpval