R-beta: write and dput lose precision

Bill Simpson wsimpson at uwinnipeg.ca
Fri Mar 27 17:27:48 CET 1998

Maybe this is the proper behaviour, but it was puzzling to me.
My original data are recorded to 6 decimal places, and I trust all those
numbers (microsecond timer).

I scan the data in.  Now I use write (or dput) to save them back to
disk. Examining the numbers with an editor I see that a number like
is still the same, but a number like
It seems that write or dput wants the number to have only 7 digits in

I solved this problem by using save/load instead of write/scan or
dput/dget.  I am just reporting this because it seems odd.

Bill Simpson

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