[R] S4: Multiple inheritance

Corrado ct529 at york.ac.uk
Tue Mar 23 10:38:19 CET 2010


Dear Christophe,

Could you please post some example code of what you are trying to achieve?

Christophe Genolini wrote:
> Hi all,
>
> Working with S4 object, I definine two class foo1 and foo2. I define 
> '[' (resp. '[<-') for the two classes.
> Then I define a third class foo3 that inherit from both foo1 and foo2.
> Is there a way to make '[' (resp. '[<-') for foo3 inherit from '[' 
> (resp. '[<-')  for foo1 and foo2?
>
> Thanks
> Christophe
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


-- 
Corrado Topi
PhD Researcher
Global Climate Change and Biodiversity
Area 18,Department of Biology
University of York, York, YO10 5YW, UK
Phone: + 44 (0) 1904 328645, E-mail: ct529 at york.ac.uk



More information about the R-help mailing list