title: xTable Knitr Error - every line is printed underneath in PDF
body: <p>I try to knitr my R-Markdown as PDF and want to print some tables using xtable, but unfortunately I print every item of my table underneath: <a href="https://i.stack.imgur.com/i3kRD.png" rel="nofollow noreferrer">Print Output</a>
  (FYI: I'm in college and asked to use xtable for this exercise).</p>
  <p>I use the following code (there are more tables but they follow the same pattern;
  the library xtable is already loaded in my R-Markdown earlier):</p>
  <pre><code>```{r echo=FALSE}
  swisstable &lt;- sapply(swiss,function(x) {
  c(Mean = mean(x), SD = sd(x), Median = median(x), IQR = IQR(x))
  } )
  ```
  
  ```{r echo=FALSE}
  swisstable &lt;- xtable(swisstable,align=xalign(swisstable),digits=xdigits(swisstable), 
  display=xdisplay(swisstable))
  ```
  
  ```{r results='asis', echo=FALSE}
  print(xtable(swisstable, digits = 1, caption = &quot;Tabelle 2: Überblick über den Datensatz 
  swiss&quot;),type='html')
  ```
  </code></pre>
  <p>I'm grateful for any help,
  thanks,
  Martina</p>