title: how to transpose a matrix in r if the usual `t( )` doesn't work?
body: <p>I have a matrix I am trying to transpose in R but the t() function does not return the right answer. How can I transpose the matrix?</p>
  
  <pre><code>&gt; xx=matrix(c(3,7,4,8),2,byrow=TRUE)
  &gt; xx
       [,1]  [,2]
  [1,]    3     7
  [2,]    4     8
  &gt; t(xx)
  [1] 0.7071068 0.7071068
  </code></pre>