[R] S4: Multiple inheritance

2010-03-23 Thread Christophe Genolini

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@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.


Re: [R] S4: Multiple inheritance

2010-03-23 Thread Corrado

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@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: ct...@york.ac.uk

__
R-help@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.