[Rd] Unhidden predict methods
Henrik Bengtsson
hb at stat.berkeley.edu
Fri Mar 16 12:48:06 CET 2007
One reason is that you should never call those methods directly but
only via the generic function predict(), and this is a way to prevent
such misuse/mishaps. You can always use getAnywhere() if you want
look at the code.
/H
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
>
More information about the R-devel
mailing list