Hi,
I have data on cross correlations among let's say 4 variables. It is structured like this:
var1 var2 var3 var4
1 . . .
4 1 . .
3 4 1 .
3 5 7 1
I need to fill the upper triangle of my data with the transposed values from the lower triangle. So it becomes:
var1 var2 var3 var4
1 4 3 3
4 1 4 5
3 4 1 7
3 5 7 1
Is there a short way to do it?
Thanks!
I have data on cross correlations among let's say 4 variables. It is structured like this:
var1 var2 var3 var4
1 . . .
4 1 . .
3 4 1 .
3 5 7 1
I need to fill the upper triangle of my data with the transposed values from the lower triangle. So it becomes:
var1 var2 var3 var4
1 4 3 3
4 1 4 5
3 4 1 7
3 5 7 1
Is there a short way to do it?
Thanks!
Comment