Re: [Rd] setMethod("Summary")

2006-09-05 Thread Prof Brian Ripley
On Tue, 5 Sep 2006, Prof Brian Ripley wrote: > On Tue, 5 Sep 2006, Martin Maechler wrote: > > > > "Robin" == Robin Hankin <[EMAIL PROTECTED]> > > > on Tue, 5 Sep 2006 08:58:23 +0100 writes: > > > > Robin> Dear Franklin > > Robin> thank you for this. > > > > yes, and he *did*

Re: [Rd] setMethod("Summary")

2006-09-05 Thread Prof Brian Ripley
On Tue, 5 Sep 2006, Martin Maechler wrote: > > "Robin" == Robin Hankin <[EMAIL PROTECTED]> > > on Tue, 5 Sep 2006 08:58:23 +0100 writes: > > Robin> Dear Franklin > Robin> thank you for this. > > yes, and he *did* send it already last week. > > Robin> Your suggestion work

Re: [Rd] setMethod("Summary")

2006-09-05 Thread Martin Maechler
> "Robin" == Robin Hankin <[EMAIL PROTECTED]> > on Tue, 5 Sep 2006 08:58:23 +0100 writes: Robin> Dear Franklin Robin> thank you for this. yes, and he *did* send it already last week. Robin> Your suggestion works. and continues to do so in R-devel aka "R-2.4.0 alpha" (as

Re: [Rd] setMethod("Summary")

2006-09-05 Thread Robin Hankin
Dear Franklin thank you for this. Your suggestion works. But now I'm confused because I'm not sure how the setGeneric() call actually helps. If I source: setClass("brob", representation = representation (x="numeric",positive="logical"), prototype = list(x=numeric(

Re: [Rd] setMethod("Summary")

2006-09-04 Thread Parlamis Franklin
i believe, if the function you are trying to work with has "..." as the first formal argument (as do most if not all of the "Summary" group functions), you will need to redefine the generic in order to provide a "real" S4 argument on which to dispatch. the following works for me (IIRC it was

[Rd] setMethod("Summary")

2006-09-04 Thread Robin Hankin
Hi everyone and thanks for being patient. I've used "!.foo"() et seq pro tem. Next problem: how to define "Summary" methods for brobs. ?max says 'max' and 'min' are generic functions: methods can be defined for them individually or via the 'Summary' group generic. For this to