[R] Exporting from Splus into R

José Ernesto Jardim ernesto at ipimar.pt
Tue Apr 3 15:48:57 CEST 2001


Prof Brian D Ripley wrote:

> On Tue, 3 Apr 2001, [iso-8859-1] José Ernesto Jardim wrote:
>
> > Hi
> >
> > I want to export an array (dim=c(24,12,17)) from splus into R. I've
> > tried dump but R couldn't source it.
>
> What happened?  Can you source it in S-PLUS?
>
> > Is there a fast and clean way of doing this ?
>
> data.dump in S-PLUS  and data.restore in package Rstreams should work ....
>
> Otherwise just write() it as a vector, scan as a vector and add a
> dimension.
>
> --
> 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 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595

Yes I can source it in Splus but R says

> source("dump.out")
Error in eval.with.vis(expr, envir, enclos) :
        couldn't find function "new"


I think I'll try the write(as.vector()) and scan.

Thanks

EJ

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