Message-
From: Martin Morgan [mailto:mtmor...@fhcrc.org]
Sent: Wed 07/07/2010 16:43
To: Foadi, James (Imperial Coll.,RAL,DIA)
Cc: r-devel@r-project.org
Subject: Re: [Rd] how to define method for "+" function in a new class
On 07/07/2010 08:09 AM, james.fo...@diamond.ac.uk wrote:
>
On 07/07/2010 08:09 AM, james.fo...@diamond.ac.uk wrote:
>
>
> Dear R developers,
> I have a new class, which I called "Molecule", and have tried to define =
> a "+" operation for 2 objects of this class.
> This is what I have written so far, although the method is not complete =
> (I'm trying to
fordshire OX11 0DE
Email: james.fo...@diamond.ac.uk
Alt Email: j.fo...@imperial.ac.uk
-Original Message-
From: r-devel-boun...@r-project.org on behalf of james.fo...@diamond.ac.uk
Sent: Wed 07/07/2010 16:09
To: r-devel@r-project.org
Subject: [Rd] how to define method for "+" fun
Dear R developers,
I have a new class, which I called "Molecule", and have tried to define =
a "+" operation for 2 objects of this class.
This is what I have written so far, although the method is not complete =
(I'm trying to look at it at intermediate stages):
setMethod(
f=3D"+",