Thanks, it seems so obvious now!
baptiste
2009/12/20 Gabor Grothendieck :
> The free variables in a proto method are looked up in the object that
> the method was defined in so by referencing predict within
> test$predict you are referring back to test$predict whereas you mean
> to refer to stats
The free variables in a proto method are looked up in the object that
the method was defined in so by referencing predict within
test$predict you are referring back to test$predict whereas you mean
to refer to stats::predict. Change the line that calls predict to:
stats::predict(.$spline(), x.fin
2 matches
Mail list logo