Re: [Rd] S4 generic for lowess

2008-05-27 Thread Oleg Sklyar
One can redefine range and similar ones (c, cbind, rbind etc) as S4 methods: :: R version 2.8.0 Under development (unstable) (2008-04-22 r45454) > setGeneric("range") [1] "range" > setClass("MyClass", representation("numeric",comment="character")) [1] "MyClass" > setMethod("range", "MyClass", fun

Re: [Rd] S4 generic for lowess

2008-05-20 Thread Henrik Bengtsson
A quick comment on design: On Tue, May 20, 2008 at 1:41 AM, Iago Mosqueira <[EMAIL PROTECTED]> wrote: > Hi, > > A lowess method is defined in our package for one of our S4 classes. To > explicitely define the generic this is being used > > if (!isGeneric("lowess")) > setGeneric("lowess", useAsDef

[Rd] S4 generic for lowess

2008-05-20 Thread Iago Mosqueira
Hi, A lowess method is defined in our package for one of our S4 classes. To explicitely define the generic this is being used if (!isGeneric("lowess")) setGeneric("lowess", useAsDefault = lowess) This works fine for many other methods inherited from various R packages. In this case a warning i