From p.dalgaard@biostat.ku.dk  Wed May 23 20:12:45 2001
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 23 May 2001 21:12:45 +0200
Subject: [Rd] New generic functions in "R base" {was `truncate'}
In-Reply-To: Gregory Warnes's message of "Wed, 23 May 2001 20:37:52 +0200 (CEST)"
References: <Pine.LNX.3.96.1010523203540.2129A-500000@luthien.ci.tuwien.ac.at>
Message-ID: <x2k837swuq.fsf@blueberry.kubism.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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