Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- title: "sample"
- output: pdf_document
- header-includes:
- - \usepackage{booktabs}
- ---
- ```{r global_options, R.options=knitr::opts_chunk$set(warning=FALSE, message=FALSE)}
- ```
- ```{r sample, echo=FALSE, results='asis'}
- library(knitr)
- library(xtable)
- t1 <- kable(head(mtcars)[1:3], format = "latex", booktabs = TRUE)
- t2 <- kable(head(mtcars)[4:6], format = "latex", booktabs = TRUE)
- ```
- \begin{table}[!htb]
- \begin{minipage}{.5\linewidth}
- \caption{}
- \centering,
- `r t1`,
- \end{minipage}%
- \begin{minipage}{.5\linewidth}
- \centering
- \caption{},
- `r t2`,
- \end{minipage}
- \end{table}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement