more on dput

Paul Gilbert
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

> 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
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: