I'm using xtable to convert an R table into an object, which can then be printed as a LaTeX table. In this table, I need single numbers to be printed in different colors. Therefore, I already substituted these numbers before applying the xtable function using
paste0("\\textcolor{black!25!green}{",x.tab[[4]][i],"}",sep="")
where x.tab is my R table.
The .tex file looks fine and is compiling without any error. Still, I need these colored numbers, that are captured in a string now, with a decimal comma. All non-colored numbers are in the right format, because I use
format.args = list(big.mark = ".", decimal.mark = ",")
in my print function.
Any help is much appreciated!