[R] comma as decimal separator in xtable

Jakson A. Aquino jaksonaquino at gmail.com
Tue Sep 15 17:06:31 CEST 2009


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




More information about the R-help mailing list