[R] Printing large number

Greg Snow Greg.Snow at imail.org
Thu Jan 24 17:40:36 CET 2008


There is more than one way, but probably the easiest is to set
options(scipen= <some big number>).  See ?options for details.

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of alex lam (RI)
> Sent: Thursday, January 24, 2008 6:34 AM
> To: r-help at r-project.org
> Subject: [R] Printing large number
> 
> Dear R users,
> 
> Just a quick question, how do I prevent 100000 printed as 
> 1e+05 when I print it into a file?
> 
> Thanks,
> Alex
> 
> --------------------------------------------
> Alex C. Lam
> Roslin Institute (Edinburgh)
> Midlothian
> EH25 9PS
> United Kingdom
> Tel: +44 131 5274471
> 
> Roslin Institute is a company limited by guarantee, 
> registered in Scotland (registered number SC157100) and a 
> Scottish Charity (registered number SC023592). Our registered 
> office is at Roslin, Midlothian, EH25 9PS. VAT registration 
> number 847380013.
> 
> The information contained in this e-mail (including any 
> attachments) is
> confidential and is intended for the use of the addressee only.   The
> opinions expressed within this e-mail (including any 
> attachments) are the opinions of the sender and do not 
> necessarily constitute those of Roslin Institute (Edinburgh) 
> ("the Institute") unless specifically stated by a sender who 
> is duly authorised to do so on behalf of the Institute
> 
> ______________________________________________
> 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.
> 



More information about the R-help mailing list