[R] Resurrecting old Splus objects

Patrick Connolly p_connolly at slingshot.co.nz
Fri Feb 17 07:45:09 CET 2012


On Thu, 16-Feb-2012 at 07:30AM +0000, Prof Brian Ripley wrote:

|> Try read.S in package foreign.  It was written back in the days of
|> that S-PLUS format.

Great.  Knows all about big-endian and does exactly what I needed very
simply.  All that time I've known about the foreign package and never
looked at it, imagining it was for people who had SPSS or SAS and the
like.

Thanks for the pointer.


|> 
|> On 16/02/2012 06:06, Patrick Connolly wrote:
|> >I have a small file of the type that S-PLUS produced and stored in
|> >.Data/ directories back in the days before we used R. I'm fairly sure
|> >it would become a dataframe if read into Ver 3.4 of that august
|> >predecessor to what we use now.  (It was Solaris in case that makes
|> >any difference.)
|> 
|> It does, because Solaris then would AFAIR have been on Sparc and
|> big-endian.  But read.S should handle big-endian.
|> 
|> >AFAIK, the format that S-PLUS uses changed after that, so a current
|> >version would find it unreadable.
|> 
|> I believe more recent S-PLUS would be able to read it, too.
|> 
|> > If that is the case, I could be
|> >searching for an S-language enthusiast/historian who has access to a
|> >suitable version.
|> >
|> >If you, gentle reader, or someone you know is such a person, I would
|> >appreciate it if you could use something like write.table to produce a
|> >text file such as a CSV or tab-delimitted.
|> >
|> >If you are willing and able, or even better, if there's an easier way,
|> >I'd be very interested to know about it.
|> >
|> >TIA
|> >
|> 
|> 
|> -- 
|> 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

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt
	  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.



More information about the R-help mailing list