I'm creating a LaTeX tables based on a matrix in R using the 'latex' function of the Hmisc package.
dat = matrix(c(1000, 100, 10000, 10000), 2) latex(dat, file='')
This works (as expected) perfectly.
Additionally I would like to use
to format the numbers in a more readable way. For example:
100 --> 100 1000 --> 1.000
Is there a simple way to combine these functions without breaking the (automatic!) table alignment ('r' for numbers instead of 'l' for character)?