[R] Number Format
(Ted Harding)
Ted.Harding at nessie.mcc.ac.uk
Tue Oct 14 12:31:02 CEST 2003
On 14-Oct-03 michael watson (IAH-C) wrote:
> A very simple question on number formats. After some calculations,
> some variables I have come out looking like this:
> [...]
> -1.892972e+00
>
> I have tried options(digits = 12) or something similar but that doesn't
> seem to help. How can I get R to export this data without the e+00?
Try formatC:
pnorm(-6.1)
[1] 5.303423e-10
formatC(pnorm(-6.1),format="f",digits=15)
[1] "0.000000000530342"
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 167 1972
Date: 14-Oct-03 Time: 11:31:02
------------------------------ XFMail ------------------------------
More information about the R-help
mailing list