title: Side by side Xtables in Rmarkdown
body: <p>I have seen answers to creating side by side xtables in RMarkdown-HTML
  <a href="https://stackoverflow.com/questions/21397407/knitr-r-markdown-and-xtable-xtable-tables-within-html-table">knitr, R Markdown, and xtable: xtable tables within HTML table</a></p>
  
  <p>and how to create side by side xtables in Sweave directly
  <a href="https://stackoverflow.com/questions/6263394/r-print-two-tables-with-xtable">R: Print two tables with xtable ()</a></p>
  
  <p>But how about side by side xtables in Rmarkdown/Pandoc?</p>
  
  <p>In my *Rmd file I have</p>
  
  <pre><code>```{r , results='asis', message=FALSE, echo=FALSE}
  female.bmi &lt;- lm(bmi ~ AGEGROUP + RACE + GEO_SPA + FPL_FIN + as.factor(year),
                data=lach[lach$GENDER=='Female',] )
  xtable(female.bmi, comment=FALSE, caption = 'Linear regression of BMI for females')
  male.bmi &lt;- lm(bmi ~ AGEGROUP + RACE + GEO_SPA + FPL_FIN + as.factor(year),
              data=lach[lach$GENDER=='Male',] )
  xtable(male.bmi, comment=FALSE, caption = 'Linear regression of BMI for males')
  ```
  </code></pre>
  
  <p>then I compile as follows: </p>
  
  <pre><code>knit('Modeling/simple.rmd', 'Modeling/simple.md') # creates md file
  pandoc('Modeling/simple.md', format='latex') # LaTeX/PDF
  </code></pre>
  
  <p>These show up as separate tables - good! But how can I get them to display as side by side subfigures/subtables? I've tried to integrate Latex subfigure code around the <code>{r}print(xtable)</code> code to no avail. </p>