more on dput
Paul Gilbert
pgilbert@bank-banque-canada.ca
Fri, 12 Feb 1999 14:06:41 -0500
I would like to write data so that I can re-read it and reproduce results,
preferably in both R and Splus. In the past when I have done this my data has
been relatively simple and I've just scan()ed it. Now I have a fairly
complicated structure I would like to preserve and I've been trying to use dput
and dget. Is there a better way? If not, the following truncation by dput,
which I mentioned yesterday, is causing me a fair amount of trouble. Suggestions
on how to fix it would be appreciated.
Paul Gilbert
_______
R:
> dput (1/3, "zot")
> (1/3) - dget("zot")
[1] 3.333333e-08
Splus 3.3:
> dput(1/3, "zot")
> (1/3) - dget("zot")
[1] 3.330669e-16
written by Splus, read in R:
> (1/3) - dget("zot")
[1] 3.330669e-16
so the problem seems pretty clearly to be in R's dput.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._