From pgilbert@bank-banque-canada.ca  Fri Feb 12 19:06:41 1999
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Fri, 12 Feb 1999 14:06:41 -0500
Subject: more on dput
Message-ID: <99Feb12.150245est.13483@mailgate.bank-banque-canada.ca>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


more on dput
Paul Gilbert