Just put two data frames in a list, e.g.
t1 <- head(mtcars)[1:3]
t2 <- head(mtcars)[4:6]
knitr::kable(list(t1, t2))
Note this requires knitr >= 1.13.
More Related Contents:
- knitr/rmarkdown/Latex: How to cross-reference figures and tables?
- Code chunk font size in Rmarkdown with knitr and latex
- possible to create latex multicolumns in xtable?
- How to stop bookdown tables from floating to bottom of the page in pdf?
- YAML current date in rmarkdown
- How to combine two RMarkdown (.Rmd) files into a single output?
- Rstudio rmarkdown: both portrait and landscape layout in a single PDF
- How to convert R Markdown to HTML? I.e., What does “Knit HTML” do in Rstudio 0.96?
- Set margin size when converting from Markdown to PDF with pandoc
- Generate Dynamic R Markdown Blocks
- Subfigures or Subcaptions with knitr?
- Conditionally display a block of text in R Markdown
- Programmatically creating Markdown tables in R with KnitR
- two-column layouts in RStudio presentations/slidify/pandoc
- R Markdown – variable output name
- Get rid of \addlinespace in kable
- Create a loop that includes both a code chunk and text
- How to hold figure position with figure caption in pdf output of knitr?
- Insert a logo in upper right corner of R markdown pdf document
- Use loop to generate section of text in rmarkdown
- Use R code or Windows user variable (“%userprofile%”) in YAML?
- R – Markdown avoiding package loading messages
- Unicode with knitr and Rmarkdown
- Plot size and resolution with R markdown, knitr, pandoc, beamer
- R: why kable doesn’t print inside a for loop?
- Programmatically insert header and plot in same code chunk with R markdown using results=’asis’
- Reduce file size of R Markdown HTML output
- Wrap text around plots in Markdown
- Knit one markdown file to two output files
- Automatically adjust LaTeX table width to fit pdf using knitr and Rstudio