But, it seems that dcolumn can change the decimal separator too (see the
table on the first page of the pdf document).

For example:

\documentclass{article}

\usepackage{dcolumn}

\newcolumntype{d}[1]{D{.}{,}{#1}}

\begin{document}

<<results=tex>>=
x <- matrix(rnorm(4), 2, 2)
library(xtable)
xtable(x, align = c("l", "|", "d{2}", "|", "c", "|"))
@

\end{document}

2009/9/16 Jakson A. Aquino <jaksonaqu...@gmail.com>

> On Wed, Sep 16, 2009 at 01:59:29PM +0200, David Hajage wrote:
> > Perhaps with the dcolumn package ?
> > http://newton.ex.ac.uk/research/qsystems/people/latham/LaTeX/dcolumn.pdf
>
> Thanks for the suggestion, but the problem isn't of alignment.
> When I have commas as decimal separators, the values are
> aligned because all values of each column were formated with the
> same number of digits.
>
> ______________________________________________
> 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]]

______________________________________________
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.

Reply via email to