[R] formatting
Ruud H. Koning
info at rhkoning.com
Wed Jun 26 21:20:11 CEST 2002
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.
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?
Thanks, Ruud
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list