Re: [Rd] Polymorphism of predict

2009-08-19 Thread Christian Brechbühler
ant. Thank you /Christian > > -Original Message- > > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r- > > project.org] On Behalf Of Christian Brechbühler > > Sent: Monday, August 17, 2009 2:54 PM > > To: r-de...@stat.math.ethz.ch > > Su

Re: [Rd] Polymorphism of predict

2009-08-19 Thread Greg Snow
re greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r- > project.org] On Behalf Of Christian Brechbühler > Sent: Monday, August 17, 2009 2:54 PM > To: r-de...@stat.math.ethz.ch > Subject: [Rd] Polymorphism of pr

[Rd] Polymorphism of predict

2009-08-18 Thread Christian Brechbühler
I can fit a line to a set of given points, e.g., > sm.fit <- smooth.spline(1:4,1:4) > lm.fit <- lm(y~x, data=list(x=1:4,y=1:4)) Now I have two objects representing the straight line y(x)=x, of class "smooth.spline" and "lm", respectively. And as could be expected in object orientation, both have