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

From: Gavin Simpson <gavin.simpson_at_ucl.ac.uk>
Date: Wed 03 Aug 2005 - 15:56:00 GMT

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,

Gav

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
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.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu Aug 04 01:58:49 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:33 GMT