Inserting blank spaces at the end of a column name in a table using pander
问题 I am trying to find a way of centering a column heading in a pander table using knitr to pdf in rmarkdwon, but keeping the column entries right justified. --- title: "Table Doc" output: pdf_document --- ```{r table, echo = FALSE} table1 <- anova(lm(Petal.Length ~ Species*Petal.Width, iris)) names(table1) <- c("DF", "Sum Sq", "Mean Sq", "*F*", "*p*") library(pander) pander(table1, justify = c("left", rep("right", 5))) ``` There is no way to align individual cells inside a table in pandoc