powered by
pander()
align_pander(x, align_idx = NULL, caption = NULL)
l
r
c
pander(x)
panderOptions('table.alignment.default')
The default alignments are numeric right and everything else left.
x <- mtcars[1:5, 1:5] align_pander(x) align_pander(x, align_idx = "rcrrr") align_pander(x, caption = "A nicely formatted table")
Run the code above in your browser using DataLab