![]() |
VOOZH | about |
In this article, we will Transpose a Matrix without using t() function in R Programming Language.
Transpose of a matrix is an operation in which we convert the rows of the matrix into columns and columns of the matrix in rows. The general equation for performing the transpose of a matrix is as follows.
Aij = Aji where i is not equal to j
Example:
Matrix ---> [1, 2, 3 4, 5, 6 7, 8, 9] Transpose of Matrix ---> [1,4,7 2,5,8 3,6,9]
Example:
Create 3*3 matrix and transpose.
Output: