[R] Restoring an S object that was data-dumped
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Jan 20 20:42:51 CET 2004
On Tue, 20 Jan 2004, Roger D. Peng wrote:
> Obviously, it was data.restore() that produced the error
> below. However, I think S-PLUS 5 might not be supported by
> data.restore() in the `foreign' package since the docs there
> say it can only read objects from S-PLUS versions 3.x and
> 4.x (on Unix).
Correct. We don't have a description of the S4 (hence S-PLUS 5.x and 6.x)
data.dump format. We recommend using data.dump(oldStyle=T) in those
versions of S-PLUS if possible.
> Spencer Graves wrote:
> > Have you tried 'help.search("data.restore")' or the "posting guide"
> > at "http://www.R-project.org/posting-guide.html"? I believe the object
> > of your desires (at least for this request) is in "library(foreign)".
> > hope this helps. spencer graves
> >
> > Ravi Varadhan wrote:
> >
> >> Hi:
> >>
> >> In R, how can I "data.restore" an object that was "data.dump"ed in
> >> Splus (I am not sure of the exact version, but probably Splus5)? When
> >> I use data.restore, I get the following error message (I am using R
> >> 1.7.0 on Windows)
> >>
> >>
> >>
> >>> data.restore("n2.suicide")
> >>>
> >>
> >> Error in ReadSdump(TRUE, " ") : S mode " "Netherlands",
> >> "Ireland", "Denmark", "Norway", " Sweden", "Finland"," (near byte
> >> offset 230) not supported
> >> In addition: Warning message: NAs introduced by coercion
> >>
> >>
> >> Thanks for any help,
> >> Ravi.
> >>
> >> ______________________________________________
> >> R-help at stat.math.ethz.ch mailing list
> >> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide!
> >> http://www.R-project.org/posting-guide.html
> >>
> >>
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> > http://www.R-project.org/posting-guide.html
> >
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list