7. Matrix rank. The rank of a matrix is the same as the rank of its transpose. In this exercise, you are given a matrix,
X
. Check its rank using the rankMatrix()
function from the Matrix
library.
After that, transpose it using the t()
function and check its rank.