transpose {tropAlgebra}R Documentation

Transpose of a Matrix

Description

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

Usage

transpose(X)

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

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


[Package tropAlgebra version 0.1.1 Index]