[R] attach

Dieter Menne dieter.menne at menne-biomed.de
Wed Oct 14 08:40:45 CEST 2009




Christophe Dutang1 wrote:
> 
> 
> I would like to know what happens on the memory side when I use
> attach(inputdata)
> 
> Is there a second allocation of memory for inputdata?
> 

Not, it just guides the syntax.


Christophe Dutang1 wrote:
> 
> Is it better not to use attach function?
> 

A qualified "yes" in the sense of  "do not use it". I think it is used to
much in old documentation, presumably because some S eggshells.

I use with() if I have a nasty formula to unclutter; it acts locally only
and you don't get unwanted side effects.

Dieter


-- 
View this message in context: http://www.nabble.com/attach-tp25885494p25886141.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list