[R] Printing large number

Liviu Andronic landronimirc at gmail.com
Thu Jan 24 15:52:18 CET 2008


On 1/24/08, alex lam (RI) <alex.lam at bbsrc.ac.uk> wrote:
> Dear R users,
>
> Just a quick question, how do I prevent 100000 printed as 1e+05 when I
> print it into a file?

?options
You would be interested in "scipen" and/or "digits".

# # Set digits display options
options(digits = 4)
options(scipen = 6)

Liviu



More information about the R-help mailing list