Matrix Diagonalization in R | CodeSignal Learn