[R] get the value of a biplane
jdnewmil at dcn.davis.ca.us
Mon May 29 21:15:55 CEST 2017
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.duncan at gmail.com> wrote:
>On May 28, 2017 1:53:29 PM PDT, Rui Barradas <ruipbarradas at sapo.pt>
>> > 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
>It's not an error to rely on the generic to get to a method.
More information about the R-help