Skip to content
Prev 58737 / 398502 Next

no doubt a dumb question, but..

On Tue, 2004-11-09 at 02:07, Martin Maechler wrote:
<SNIP>
Right. Thanks Martin. After sending my reply, I kicked myself a few
times for not mentioning with()...especially because it also enables a
standardized mechanism for accessing data frame variables across
functions (not all of which have a 'data = ' argument).

Also, there is a substantial savings with respect to overhead by not
attaching and detaching (manipulating the search path), which I had
noted and benchmarked previously in a post, earlier this year I believe,
that I cannot locate at the moment. 

This can become very important if one is looping (in some fashion) over
data frames or subsets of data frames and therefore avoids the repeated
calls to attach() and detach().

Best regards,

Marc