[Rd] deparse(substitute(x)) and S3 methods

Gavin Simpson gavin.simpson at ucl.ac.uk
Wed Aug 3 17:56:00 CEST 2005

On Wed, 2005-08-03 at 16:28 +0100, Gavin Simpson wrote:
> Dear List,
> I have the following function:

Thanks to Tony Plate (and his simple example - message to self: "follow
the posting guide's advice next time!!!"), I realised that deparse
(substitute( )) was taking place *after* I had modified x and y in
situations where some columns contained all zero values. Moving the
offending lines above the modifying if() statements solves the problem.

So - not a problem with method dispatch at all, except perhaps within my
brain just now...

All the best,

Gavin Simpson                     [T] +44 (0)20 7679 5522
ENSIS Research Fellow             [F] +44 (0)20 7679 7565
ENSIS Ltd. & ECRC                 [E] gavin.simpsonATNOSPAMucl.ac.uk
UCL Department of Geography       [W] http://www.ucl.ac.uk/~ucfagls/cv/
26 Bedford Way                    [W] http://www.ucl.ac.uk/~ucfagls/
London.  WC1H 0AP.

More information about the R-devel mailing list