0

I have created two tables in R that I would like to put side by side in conditional chunks in an R Markdown document. I managed to get the tables side by side, but they are now attached to each other. However, I would like them to have some space in between. Any ideas?

<TABLE BORDER=0>
<TR>
<TD>
```{r, eval=('May' %in%years), echo = FALSE}
table.MAY.odd
```
</TD>
<br>
<TD>
```{r, eval=('May' %in%years), echo = FALSE}
table.MAY.even
```
</TD>
</TR>
</TABLE>
Waylan
  • 37,164
  • 12
  • 83
  • 109
BWolk
  • 193
  • 1
  • 9
  • It's hard to say without a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). We don't know what `table.MAY.odd` is--a data frame? Also, generally HTML tags are lowercase, and the `border` attribute has been deprecated for some time now – camille Jan 25 '19 at 14:20
  • Also, they're attached to each other because they're adjacent cells in a single `` element. Using `
    ` elements to build layouts is a pretty outdated method, since you have better control using CSS. Would a two-column layout in your Rmarkdown not work? Such as [here](https://stackoverflow.com/q/31753897/5325862)
    – camille Jan 25 '19 at 14:25

0 Answers0