Well, then I will hedge by saying that IN MY OPINION it is an error, because when it isn't exported the arguments not specified in the generic cannot be visible for argument completion in editors. The predict.lm function specifies new data with the newdata argument, while the predict.bs function specifies it with the newx argument. Invoking with the generic is supposed be useful when trying out a variety of models, but being unable to generically specify a data frame (due to the inconsistent naming) blows that strategy to pieces anyway so you might as well be able to call the functions explicitly. -- Sent from my phone. Please excuse my brevity.
On May 29, 2017 2:43:22 AM PDT, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > >On May 28, 2017 1:53:29 PM PDT, Rui Barradas <ruipbarra...@sapo.pt> >wrote: >> > predict.bs(SCurve, xnew = 40:45) >> Error in predict.bs(SCurve, xnew = 40:45) : >> could not find function "predict.bs" > >You should call it using the generic, i.e. > >predict(SCurve, xnew = 40:45) > > >On 29/05/2017 2:35 AM, Jeff Newmiller wrote: >> Looks like it is not exported from the package namespace... a >packaging error. >> > >It's not an error to rely on the generic to get to a method. > >Duncan Murdoch ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.