Skip to content

using "by" and indicies

1 message · Jason Turner

#
On Sun, Mar 17, 2002 at 09:23:41PM -0500, james.holtman at convergys.com wrote:
Um, thanks, but I provided a similar example, saying this was what 
I didn't want to do.  I can live with "you're stuck with that way".

...
...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I just thought that was a bit too specific for what I wanted.
I was hoping for a direct evaluation within FUN (most likely by
by back-refencncing, using get(somevar,which=-x), where somevar
and -x are the mystery to me).  Saves writing a custom wrapper to 
"plot" each time I want a new type of plot, for example.  However,
since by() winds up calling lapply(), this looks tricky.

Cheers

Jason