[R] Importing S-Plus data sets into R

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu May 15 09:54:00 CEST 2003


On Thu, 15 May 2003, Dowkiw, Arnaud wrote:

> 3 steps :
> 
> under Splus:
> 
> > dput(data.frame,"data.frame.transfer")
> 
> then put "data.frame.transfer" in you working R Windows directory
> 
> under R :
> 
> >data.frame<-dget("data.frame.transfer")

That would mask the system function data.frame!

It's easier to use dump and source to transfer in source format.  If using
a current version of S-PLUS (5.x or 6.x), do use oldStyle=T when dumping.



> 
> Hope this helps.
> 
> Arnaud
> 
> -----Original Message-----
> From: Trudi O'Farrell [mailto:TOfarre1 at usc.edu.au]
> Sent: Thursday, 15 May 2003 3:06 PM
> To: r-help at stat.math.ethz.ch
> Cc: Trudi O'Farrell
> Subject: [R] Importing S-Plus data sets into R
> 
> 
> Dear All
> 
> I apologise for such a simplistic question.  However I am having immense
> trouble getting my S-Plus data set into R.  I have attempted
> data.dump/data.restore though I am unable to get it to work for me.  The
> error I am getting in R is :
> Error in seek(s) : no applicable method for "seek"
> 
> Is this the best way to import S-Plus datasets or is there another
> suggestion that I could try?  My data set is 284 variables with
> 1461rows.
> 
> Thank-you for your help in advance,
> 
> Trudi
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 
> ********************************DISCLAIMER**********************... {{dropped}}
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

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