[R] S4 base class

Michael Meyer spyqqqdia at yahoo.com
Thu Oct 17 15:01:41 CEST 2013


Sorry,

if the previous message seems without context.
Indeed, the first message was bounced by filtering rules (triggered by subject heading than which nothing could be more benign or less liable to suspician). It was:

Greetings,

I have an S4 class "B" (Base) which defines a function f=f(this="B",...) 
Dervided from B we have a derived class D which also defines a function f=f(this="D",...)

In the definition of D::f we want to call the version B::f and could do this by simply calling

f(baseClassObject(this),...)

The question is the following:

How do I refer to the base class object from the derived class?



Many thanks 


Michael Meyer



More information about the R-help mailing list