On Wed, 26 Jun 2002, Ruud H. Koning wrote:
> Hello, I must be missing something obvious. I have a 8x4 matrix, the first
> column is
> 0 1 2 3 4
> 9.470986e-01 5.147677e-02 1.398934e-03 2.534499e-05 3.443882e-07
> more than 4 nominal payoff exp.payoff
> 3.777820e-09 2.000000e+06 1.972907e+06
>
> I would like to have it printed such that all all numbers bigger than 1e-4
> are not printed in scientific notation.
> I thought that format(table.result) would do this job, but it seems not to
> apply the scientific setting to each individual element.
It does if you format element-by-element, which you can.
> How do I get thes enumbers printed as
>
> 0.9471 0.05148 0.001399 2.534e-05, etc? Is it also possible to print 10-5
> instead of e-5?
Only if your C run-time allows it.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._