[Rd] New generic functions in "R base" {was `truncate'}

kjetil halvorsen kjetilh@umsanet.edu.bo
Wed, 23 May 2001 15:39:09 -0400



Gregory Warnes wrote:
> 
> 1) What are the issues with making _existing_ functions in base into
> generics?
> 
> EG, I've recently become annoyed that plot() is a generic which can be
> applied to a formula:
> 
>         plot( outcome ~ predictor)
> 
> but functions like points, lowess, etc are not generic or don't have
> methods defined for formulae.  I've created a points.formula() and a
> generic lowess(), lowess.default(), and lowess.formula().

lowess is supposed to handle formulas and will do so when the 
scope error in xy.coords is corrected.

Kjetil Halvorsen
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._