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

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
23 May 2001 21:12:45 +0200

Gregory Warnes <warnes@ci.tuwien.ac.at> writes:

> 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().
> Are there any problems in replacing the current points() with a generic
> function, provided that the default function does the same thing as the
> original function?

Ummm, points.formula has been in base R since february 2000... slipped
in between 0.99.0 and 1.0.0 apparently.

Also note that loess() (with the correct spelling, in the modreg
library) does have a formula interface.

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
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