Re: [Rd] setIs and method dispatch in S4 classes

2006-04-10 Thread Peter Ruckdeschel
Hi Seth and John, Thank you for your helpful responses, >John Chambers <[EMAIL PROTECTED]> writes: >>From your description of the application, it sounds like you would be >>better off just forcing "+" to behave as you want. Using inheritance is >>a much more powerful mechanism & can introduce re

Re: [Rd] setIs and method dispatch in S4 classes

2006-04-10 Thread John Chambers
Seth Falcon wrote: >Hi John, > >I found your comments helpful, even though this isn't _my_ question. >But now I have one of my own :-) > >John Chambers <[EMAIL PROTECTED]> writes: > > >>>Of course, I could also declare explicitly "+" methods for signatures >>>c("Exp", "Exp"), c("Exp", "Gammad"),

Re: [Rd] setIs and method dispatch in S4 classes

2006-04-10 Thread Seth Falcon
Hi John, I found your comments helpful, even though this isn't _my_ question. But now I have one of my own :-) John Chambers <[EMAIL PROTECTED]> writes: >>Of course, I could also declare explicitly "+" methods for signatures >>c("Exp", "Exp"), c("Exp", "Gammad"), and c("Gammad", "Exp") in >>whic

Re: [Rd] setIs and method dispatch in S4 classes

2006-04-10 Thread John Chambers
From your description of the application, it sounds like you would be better off just forcing "+" to behave as you want. Using inheritance is a much more powerful mechanism & can introduce results you don't want, as it seems to have in this case. An important point about using inheritance is

Re: [Rd] setIs and method dispatch in S4 classes

2006-04-10 Thread Peter Ruckdeschel
Hi Seth , thank you for your reply. Seth Falcon <[EMAIL PROTECTED]> writes: >Peter Ruckdeschel <[EMAIL PROTECTED]> writes: > > >> ## now: B00 mother class to B01 and B02, and again B02 "contains" B01 by >> setIs: >> setClass("B00", representation(a="numeric")) >> setClass("B01", representatio

Re: [Rd] setIs and method dispatch in S4 classes

2006-04-07 Thread Seth Falcon
Hi Peter, Peter Ruckdeschel <[EMAIL PROTECTED]> writes: > ## now: B00 mother class to B01 and B02, and again B02 "contains" B01 by > setIs: > setClass("B00", representation(a="numeric")) > setClass("B01", representation(a="numeric",b="numeric"), contains= "B00") > setClass("B02", representation(a=

Re: [Rd] setIs and method dispatch in S4 classes

2006-04-07 Thread Vincent Carey 525-2265
as a fan of S4 i had a look at this; more definitive replies are undoubtedly to come > ## now: B00 mother class to B01 and B02, and again B02 "contains" B01 by > setIs: > setClass("B00", representation(a="numeric")) > setClass("B01", representation(a="numeric",b="numeric"), contains= "B00") the