How to remove the % lines in xtable table output by Knitr

后端 未结 2 1398
悲&欢浪女
悲&欢浪女 2020-12-23 16:39

By using xtable and knitr, I add a table to my RMD document and export to PDF file.

```{r, results=\'asis\'}
library(xtable)
xtable(matrixtable)
````
         


        
相关标签:
2条回答
  • The inclusion of the comment in the final table is defined by the comment argument to print.xtable

    the default value for this is getOption('xtable.comment',TRUE).

    so, if you set

    options(xtable.comment = FALSE)
    

    then for any future tables this comment will not produced.

    0 讨论(0)
  • 2020-12-23 17:25

    You can put in directly in the print statement like so:

    xtb=xtable(...)
    print(xtb, comment=FALSE)
    
    0 讨论(0)
提交回复
热议问题