Matrix Rank in R | CodeSignal Learn