[R] Transferring data from S+ to R

Simon Fear fears at roycastle.liv.ac.uk
Thu Jan 14 15:56:14 CET 1999


Joerg,

I would not, if I had a choice, ever try to manipulate LARGE data sets
in either R or S. At least, not while objects have to be
memory-resident, and passed as copies if used as arguments, and
replicated in for loops, etc. For LARGE data sets, I suffer in SAS.

If I did have to port large objects I would consider sink() and then
scan() or read.table() - there has been quite a lot of discussion of the
choice between these two in previous postings. But running out of cons
cells will never go away unless someone adds a random-access-file data
type that need not be memory resident, and this would violate the entire
design ethic of either language.

Simon Fear

-----Original Message-----
From: Joerg Kindermann [mailto:Joerg.Kindermann at gmd.de]
Sent: 14 January 1999 12:59
To: r-help at stat.math.ethz.ch
Subject: Re: [R] Transferring data from S+ to R


>>>>> "Simon" == Simon Fear <fears at roycastle.liv.ac.uk> writes:

.....

>2) Start Splus using your cleaned .Data directory. If you got any
output
>or warnings from your .First(), or perhaps best anyway, use
>rm(last.warning,last.dump,.Last.value). Then immediately issue the
>command dump(objects(),file='myfile').
>3) In R, > source('myfile')

This won't work for LARGE data sets, say a matrix of object.size()
greater
than 1 MB, or for large lists, etc. In R source will need far too many
cons
cells, and, porting data from R to S, source will generate memory leaks
in
the S process.

Does anyone have an idea how to solve this task: porting large and
possibly
structured data from R to S and vice versa?

regards

-- Dr. Joerg Kindermann
				 GMD - AiS
	German National Research Center for Information Technology
	    Schloss Birlinghoven, D-53754 St. Augustin, Germany
	       phone: +49 02241 142437 fax: +49 02241 142342
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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