Re: [Rd] S4 : declaration of inheritance

2008-02-25 Thread Oleg Sklyar
setClass(myClass, representation(x=numeric), contains=fartherClass) seems more logical to me in sense of syntax (pay attention to setClass instead of setMethod and contains instead of containt), but both work apparently. Oleg [EMAIL PROTECTED] wrote: Hi the list, There is two way to

Re: [Rd] S4 : declaration of inheritance

2008-02-25 Thread christophe . genolini
Sorry, I make a mistake... I meant : what the difference between setClass(myClass, representation(fatherClass,x=numeric) or setClass(myClass, representation(x=numeric), contains=fatherClass setClass(myClass, representation(x=numeric), contains=fartherClass)