VOOZH about

URL: https://www.geeksforgeeks.org/r-language/how-to-transpose-a-matrix-without-using-t-function-in-r/

⇱ How to Transpose a Matrix Without Using t() Function in R - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Transpose a Matrix Without Using t() Function in R

Last Updated : 23 Jul, 2025

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:

👁 Image
 
Comment

Explore