This might be of help, first applies the formatting:print(xtable(prettyNum(d,
decimal.mark=",")))
Schalk Heunis
On Tue, Sep 15, 2009 at 5:06 PM, Jakson A. Aquino
<jaksonaquino@gmail.com>wrote:
> Hello,
>
> How can I make xtable print a comma as decimal separator? Setting
> the option OutDec isn't enough for xtable:
>
> library(xtable)
> options(OutDec = ",")
>
> x <- c(1.1, 1.2, 1.3)
> y <- c(2.3, 2.2, 2.1)
> d <- data.frame(x, y)
>
> d
> print(xtable(d))
>
>
> Thanks!
>
> Jakson Aquino
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]