I would like to keep the width of columns I set using align argument of xtable and I would like to align all numeric columns to the right, others to th
align
xtable
I was having the same problem, and want to share this works in R console as
library(xtable) irisShort <- head(iris) print(xtable(irisShort, digits=rep(0,6), align=c( "p{1cm}|","p{3cm}|", "p{2cm}|","p{3cm}|", "p{3cm}|","p{3cm}|")))