transpose: Transpose of a Matrix

Description Usage Arguments Details Value Examples

Description

This fucntion interchage the rows into columns or columns into rows.

Usage

1

Arguments

X

A Matrix.

Details

If the given argument is not a matrix this function generates an error, otherwise, it tronsposed the matrix and returns in the same variable that was passed in argument like pass by reference. It changes values in memory.

Value

Returns transposed matrix X.

Examples

1
2
X<-matrix(c(2,5,3,7),ncol=2,nrow=2)
transpose(X)

tropAlgebra documentation built on May 2, 2019, 7:29 a.m.