[R] question related to S-Plus

Pikounis, Bill v_bill_pikounis at merck.com
Thu Jun 10 13:50:53 CEST 2004


Hi Rick,

> learning R.  A question to this end, though.
> Would all of my existing S-Plus arrays, functions,
> and so on have to be re-created from scratch in R,
> or is there a way to copy them into the .RData
> directory?  The answer to this question has major

I am not sure if you have had this answered already.  You definitely cannot
just copy the binary objects into a .RData workspace.  On the S-PLUS side, I
would try 
?data.dump (and particularly, its argument oldStyle if you have S3/S-PLUS
2000 or earlier objects), and/or ?dput to get your S-PLUS objects exported
to ASCII format.  

Then from the R side, see ?source and ?dget to import things into R objects.
I do not recall off-hand what the best combinations and argument settings
are for the most common situations. But I recall the reliability being
pretty high in my practice if not perfect, which is more than I could ask
for.  

I'd also like to suggest that if you do not already, you might want to make
a habit to use and keep files of source code with objects that you create,
especially functions and calls to create data.frames, etc.... As wonderful
as R is, I find S-PLUS is still needed a lot in my work, so when you need to
work with both, having a file of the source commands is most convenient
(actually, I personally find it absolutely essential).

Hope that helps.

Bill

---------------------------------------
Bill Pikounis, Ph.D.

Biometrics Research Department
Merck Research Laboratories
PO Box 2000, MailDrop RY33-300  
126 E. Lincoln Avenue
Rahway, New Jersey 07065-0900
USA

Phone: 732 594 3913
Fax: 732 594 1565


> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Rick Picard
> Sent: Wednesday, June 09, 2004 12:58 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] question related to S-Plus
> 
> 
> Dear r-help,
>       Having used S-Plus for many years, it has
> been suggested to me that I could benefit from
> learning R.  A question to this end, though.
> Would all of my existing S-Plus arrays, functions,
> and so on have to be re-created from scratch in R,
> or is there a way to copy them into the .Rdata
> directory?  The answer to this question has major
> implications for the extent to which R is attractive
> in the near term, and any enlightenment would be
> much appreciated.
> 
> Thanks,
> Rick Picard
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list