[Rd] S4 : declaration of inheritance
Oleg Sklyar
osklyar at ebi.ac.uk
Mon Feb 25 15:29:11 CET 2008
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
christophe.genolini at free.fr wrote:
> Hi the list,
>
> There is two way to declare a new object with inheritence : one can do
>
> setMethod("myClass",
> representation("fatherClass",x="numeric")
> ....
>
> or
>
> setMethod("myClass",
> representation(x="numeric"),
> containt="fatherClass"
> ....
>
> Is there any difference ? What is the usal way ?
>
> Christophe
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
--
Dr Oleg Sklyar * EBI-EMBL, Cambridge CB10 1SD, UK * +44-1223-494466
More information about the R-devel
mailing list