Re: [R] S4 method dispatch with inheritance

2009-07-20 Thread Martin Maechler
> "MH" == Michael Hahsler > on Mon, 20 Jul 2009 08:57:28 -0500 writes: MH> Hi, I'm trying to create a new S4 class (myMatrix) which MH> for now just extends dgCMatrix (from package MH> Matrix). Then I want to use "[" which is defined in MH> Matrix. MH> Out of the

[R] S4 method dispatch with inheritance

2009-07-20 Thread Michael Hahsler
Hi, I'm trying to create a new S4 class (myMatrix) which for now just extends dgCMatrix (from package Matrix). Then I want to use "[" which is defined in Matrix. Out of the box with "[" (defined in Matrix) I lose the class information and the result is an object of class dgCMatrix. If I spec