Re: [R] Printing large number

From: Liviu Andronic <landronimirc_at_gmail.com>
Date: Thu, 24 Jan 2008 15:52:18 +0100

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



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. Received on Thu 24 Jan 2008 - 15:06:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Jan 2008 - 15:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive