我在 rmarkdown 文件中使用 Hmisc。当我创建一个表时,这就是我所做的
---
output: pdf_document
---
```{r Arrests Stats, results ='asis', message = FALSE, warning = FALSE, echo = FALSE}
# render the table
options(digits=1)
library(Hmisc)
latex(head(mtcars), file="")
```
乳胶输出的第一行显示如下
%latex.default(cstats, title= title....
\begin{table}...
.
.
.
\end{tabular}
注意'%'我需要弄清楚删除第一行,因为它在编织时显示在 PDF 文档上