From ggrothendieck at gmail.com  Fri Mar 16 14:21:08 2007
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Fri, 16 Mar 2007 09:21:08 -0400
Subject: [Rd] Unhidden predict methods
In-Reply-To: <45FA812B.1060104@gmail.com>
References: <45FA812B.1060104@gmail.com>
Message-ID: <971536df0703160621s18770186vd5c9ac8d50460025@mail.gmail.com>

Sometimes its useful to call a method on a class other than the method
indicated by the suffix of the method name and in that case one needs
to call the method directly rather than via the generic.

For an example, see:

http://tolstoy.newcastle.edu.au/R/e2/help/07/01/9383.html


On 3/16/07, Henric Nilsson (Public) <nilsson.henric at gmail.com> wrote:
> Hi,
>
> I've noted that not all `predict' methods are hidden in the namespace:
>
>  > methods("predict")
>  [1] predict.ar*                predict.Arima*
>  [3] predict.arima0*            predict.glm
>  [5] predict.HoltWinters*       predict.lm
>  [7] predict.loess*             predict.mlm
>  [9] predict.nls*               predict.poly
> [11] predict.ppr*               predict.prcomp*
> [13] predict.princomp*          predict.smooth.spline*
> [15] predict.smooth.spline.fit* predict.StructTS*
>
>    Non-visible functions are asterisked
>
> I'm sure there's a good reason for this, but I haven't been able to
> figure it out. Please enlighten me.
>
> Thanks!
>
>
> Henric
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] Unhidden predict methods
Gabor Grothendieck