[R] import data from splus

Duncan Murdoch murdoch at stats.uwo.ca
Tue Nov 14 18:02:32 CET 2000

On Tue, 14 Nov 2000 10:04:42 -0500 (EST), you wrote in message
<200011141504.KAA25758 at jessie.research.bell-labs.com>:

>I have a somewhat similar problem.  I also need to move huge, somewhat
>complicated objects from Splus5 to R.  I need data.restore() in R 
>(in my case it should be S4/Splus5 aware).

That may not be very easy at all.  There are differences between the
ways that R and S construct expressions and formulas; to work at the
level of the binary files or of data.dump, you'd need to first of all
understand how S stored expressions and translate that into the way R
stores them.

Why not just use "dump" and "source"?  They are more robust, because
they use the human-readable formats which are more often consistent
between the two systems.

>I took a quick look at the Rstream manual, but I didn't see anything that
>I could easily use/modify for this problem (right?).

I tried writing data.restore, and quit when I found there's no way to
read a blank line into a vector of strings.  You have to go to
external code, and that was just too much trouble at the time.

Duncan Murdoch
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