[R] with for objects
Hadley Wickham
h.wickham at auckland.ac.nz
Thu Dec 4 08:20:40 CET 2003
Hi Gavin,
Thanks for your suggestion - it wasn't quite what I wanted, but at least
it got me thinking in the right direction. I realised I didn't really
need automatic access to all the slots/methods of a function, just to
some I used commonly. So I wrote a function that generates a list
containing the bits I want from the object, and then passed that to
with(). Simple and something I probably should have thought of before
trying to be excessively complicated!
Hadley
More information about the R-help
mailing list