Aligning Columns with knitr kable function
问题 I am performing a simple task: creating a table and outputting it using R Markdown to pdf as follows: library(knitr) kable(datatable,align='ccccccc', col.names = c("Copy","Sigma Est","Sigma Lower","Sigma Upper", "Lambda Est","Lambda Lower","Lambda Upper"),digits=3) Problem when I output the table, columns are not centered. Actually, for some tables they are right aligned for others - left aligned, which seems rather random to me. Question How can I control the alignment of columns with R