t {lazy.symbolic2} | R Documentation |
Transposition of a matrix
t(A)
A |
The Matrix to be transposed |
When A is a super matrix, 3d array, or list of matrices,
lazy.mat::transp
will be used.
When A is a fully symbolic matrix, lazy.symbolic::tp
will be used.
Otherwise, native base::t
function will be used.
# standard numeric matrix
( Anum=demomat(3,2) )
# semi-symbolic matrix
( Ass=demomat(3,2,root="a") )
# fully symbolic matrix
( Afs=demomat(3,2,root="A", fullsymb=1 ) )
# 3d array
( A3d=demomat(3,2,2) )
# list of matrices
( Al=list(A1=Anum,A2=Ass) )
# super matrix
( Asm=demomat(c(2,3,4), c(2,3), supermat=1) )
# data frame
( Adf=as.data.frame(Ass))
( t(Anum) )
( t(Ass) )
( t(Afs) )
( t(A3d) )
( t(Al) )
( t(Asm) )
( t(Adf) )