Given the following example
library(pander)
table <- Titanic[1, 1, , ]
tableWithMargins <- addmargins(table)
pander(tableWithMargins)
----------------------------
No Yes Sum
----------- ---- ----- -----
**Child** 0 5 5
**Adult** 118 57 175
**Sum** 118 62 180
----------------------------
I would like to add lines separating my column totals, so the pandoc output would be this:
----------------------------
No Yes Sum
----------- ---- ----- -----
**Child** 0 5 5
**Adult** 118 57 175
----------------------------
**Sum** 118 62 180
----------------------------
How can I do this? I've read ?panderOptions
and ?pandoc.table
, but the only thing I found was the table.style
/style
parameter, but setting that to simple, multiline, grid or rmarkdown do different things.