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

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


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.


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

xtb=xtable(...)print(xtb, comment=FALSE)