[R] "attach" in R corr. to Spus one

Frank E Harrell Jr f.harrell at vanderbilt.edu
Wed Jun 9 08:00:20 CEST 2004


Petr Pikal wrote:
> Hallo
> 
> On 9 Jun 2004 at 2:06, Utsav Boobna wrote:
> 
> 
>>Hi,
>>    I am a newbie to R, just trying to switch from
>>Splus. I am wondering to know if there is any such
>>command in R as "attach" in Splus which can be used to
>>attach the full directory.
> 
> 
> I would recommend you to spent some time going through docummentation and 
> especially FAQs. 
> 
> getwd and setwd for setting the working directory
> 
> but in R objects are stored in one file .Rdata.

I prefer to control which objects are stored, and to use compression, by 
using save( ) and load( ), rather than using the .Rdata mechanism. 
save( ) can store one object or an entire series of objects in one .rda 
file.

Frank

> 
> OTOH in S+ objects are (were - I did not use it since quite a lot time) stored as 
> separate files.
> 
> For attaching objects see
> 
> ?attach
> 
> Cheers
> Petr
> 
> 
>>Also, any idea/referrence about, how to load c
>>functions in R would be highly appreciated.
>>
>>Thanks,
>>Utsav
>>
>>______________________________________________
>>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
> 
> 
> Petr Pikal
> petr.pikal at precheza.cz
> 
> ______________________________________________
> 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
> 


-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University




More information about the R-help mailing list