Re: [R] basic proto question

2009-12-20 Thread baptiste auguie
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

Re: [R] basic proto question

2009-12-20 Thread 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::predict. Change the line that calls predict to: stats::predict(.$spline(), x.fin