[R] S-Plus 2000 <-> R 1.0.1
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Sat Apr 29 16:45:32 CEST 2000
On Sat, 29 Apr 2000, Edward J. Czilli wrote:
> Good day:
> Let's say that I have a data frame in S-Plus 2000 (Win98 version).
> I want to use the same data frame with R on another computer.
> 1) Can R read S-Plus data frames? Can S-Plus 2000 read R data
No, no. The first is possible (S data frames are external objects,
even if under S-PLUS 2000 they often have mapped names), but R objects
only exist inside R workspaces. [Yes, I know they can be save-d,
but they are saved as a workspace containing just one object.]
Ross has talked about adding the ability for R to read S objects, but this
would need to be done by someone who has seen the S specs and not the
S code (and I have seen the code but not the specs: I have no idea if
they are public knowledge).
> 2) How can i move the data frame between the two systems? Do I
> need to use dump()?
I would use write.table and read.table. You could also use dump and
source, but the output is hardly human-readable for data frames.
I tend to kep all my datasets as text files anyway, so I can read them into
any version of R or S.
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
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