powered by
Given a polyMatrix, t returns the transpose of x
t
# S4 method for polyMatrix t(x)
a polyMatrix
base::t() for numerical matrix tranpose
base::t()
# NOT RUN { pm <- parse.polyMatrix("1, x, x^2", "x, 1, x^3") t(pm) ## [,1] [,2] ## [1,] 1 x ## [2,] x 1 ## [3,] x^2 x^3 # }
Run the code above in your browser using DataLab