On Oct 20, 2010, at 9:21 AM, skan wrote:


Hello

I've used read.table to read a file that contains numbers such as 0.00001

when I write them back with write.table those numbers appear as  1e-5

How can I keep the old format?

To change globally for the session:
?options
> options("scipen" = 3)
>
> 0.00001
[1] 0.00001
> 0.0000001
[1] 1e-07
> 0.000001
[1] 0.000001

Other options for output:

?format
?sprintf

--
David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to