title: R - simple summary export to Latex
body: <p>let's imagine the following vector:</p>
  
  <pre><code>test &lt;- c(21.63318,NaN,NaN,24.03223,NaN,NaN,19.18797,NaN,17.71838)
  </code></pre>
  
  <p>I do a simple summary:</p>
  
  <pre><code>sum.test &lt;- summary(test)
     Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
    17.72   18.82   20.41   20.64   22.23   24.03       5 
  </code></pre>
  
  <p>I wouldlike to export the table as it is to latex. I tried:</p>
  
  <pre><code>print(xtable(as.table(sum.test), type = "latex"), file = "test.tex")
  </code></pre>
  
  <p>But I obtain:</p>
  
  <p><a href="https://i.stack.imgur.com/CzR4q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CzR4q.png" alt="enter image description here"></a></p>
  
  <p>Is their a way to have it horizontal (as displayed in R), without the "x"?</p>