From gavin.simpson at ucl.ac.uk  Wed Aug  3 17:56:00 2005
From: gavin.simpson at ucl.ac.uk (Gavin Simpson)
Date: Wed, 03 Aug 2005 16:56:00 +0100
Subject: [Rd] deparse(substitute(x)) and S3 methods
In-Reply-To: <1123082897.29499.10.camel@gsimpson.geog.ucl.ac.uk>
References: <1123082897.29499.10.camel@gsimpson.geog.ucl.ac.uk>
Message-ID: <1123084560.29499.23.camel@gsimpson.geog.ucl.ac.uk>

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



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