Re: [Rd] array subsetting of S4 object that inherits from "array"

2009-03-06 Thread Martin Maechler
> "BB" == Bradley Buchsbaum > on Thu, 5 Mar 2009 21:16:40 -0500 writes: BB> Hi, BB> I have an S4 class that inherits from "array" but does not add generic BB> implementations of the "[" method. BB> A simplified example is: BB> setClass("fooarray", contains="array

[Rd] array subsetting of S4 object that inherits from "array"

2009-03-05 Thread Bradley Buchsbaum
Hi, I have an S4 class that inherits from "array" but does not add generic implementations of the "[" method. A simplified example is: setClass("fooarray", contains="array") If I create a "fooarray" object and subset it with a one-dimensional index vector, the return value is of class "fooarray