title: How can I split a table so that it appears side by side in R markdown?
body: <p>I'm writing a document with R markdown and I'd like to put a table. The problem is that this table only has two columns and takes a full page, which is not very beautiful. So my question is : is there a way to split this table in two and to place the two &quot;sub-tables&quot; side by side with only one caption ?</p>
  <p>I use the kable command and I tried this solution (<a href="https://stackoverflow.com/questions/43984289/how-to-split-kable-over-multiple-columns">How to split kable over multiple columns?</a>) but I could not do the cbind() command.</p>
  <p>Here's my code to create the table :</p>
  <pre class="lang-r prettyprint-override"><code>---
  title: 
  author: 
  date: &quot;`r format(Sys.time(), '%d %B, %Y')`&quot;
  output: pdf_document
  indent: true
  header-includes:
    - \usepackage{indentfirst}
  ---
  
  ```{r setup, include=FALSE}
  knitr::opts_chunk$set(echo = TRUE)
  ```
  
  ```{r, echo = FALSE}
  kable(aerop2, format = &quot;markdown&quot;)
  ```
  </code></pre>
  <p>where aerop2 is my data frame with a list of country names in column 1 and the number of airports in each of these countries in column 2.</p>
  <p>I have a long two-column table which is a waste of space. I would like to split this table in two sub-tables and put these sub-tables side by side with a caption that includes both of them.</p>