I have a matrix like list1.I want to get the maximum at the two positions that are symmetric diagonally, and get the new matrix(list2).How can I run R or Excel? list1
A B C D
A 11 9 11 11
B 4 3 4 4
C 14 8 15 12
D 9 6 9 8
list2
A B C D
A 11 9 14 11
B 9 3 8 6
C 14 8 15 12
D 11 6 12 8
In Excel, the following array formula does the same job:
must be entered using CtrlShiftEnter in older versions of Excel.
In Excel 2019 I had to select G1 to J4 before entering the formula. In O365, this is automatic using the new spill formulas.
Works for arrays as well as ranges.