Try:
print(x, digits = 3)
On Dec 15, 2007 9:22 PM, tom soyer <tom.soyer at gmail.com>
wrote:> Hi,
>
> I am constructing a contingency table using xtabs. The function works
great:
> mo
> yr Sep Oct Nov Dec
> 1950 -7.164486e-02 3.152674e-02 -1.283389e-02 1.570382e-01
> 1951 3.054293e-02 4.665234e-02 -2.445499e-04 8.720204e-02
> 1952 3.937034e-02 -4.790636e-02 5.022616e-02 1.180279e-01
>
> but I wonder if there is an argument I can pass to xtabs to format the
> numbers in the table. For example, -0.0716 instead of -7.164486e-02. Does
> anyone know?
>
> Thanks!
>
> --
> Tom
>
>
> --
> Tom
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>