[R] globally set digits=3 in Sweave
landronimirc at gmail.com
Thu Aug 20 12:19:20 CEST 2009
I would like to globally set
options(digits = 4)
in an Sweave document. I've read this thread  where it was
suggested to set the above option and pass every printed number
through format(). Aanother way to do so would be to round(expr, 4).
However I would like to set the digits option once per document so
that every number printed respects it, without the need to pass every
time through a formatting/rounding function. Is this possible in
Do you know how to read?
Do you know how to write?
More information about the R-help