I am using xtable
in knitr
to create tables and currently I left align all xtable
columns because it is easy and repeatable.
However, I am wondering if there is a way to align the xtable
columns depending on the type of data in the dataframe column (num, chr, int, etc...) so that I can right align numbers and left align characters.
Thanks!