Hello,
Em 29-05-2017 10:43, Duncan Murdoch escreveu:
On May 28, 2017 1:53:29 PM PDT, Rui Barradas <[email protected]> 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)
Thanks, I should have tested that. Just did and it (obviously) worked,
giving the same result as splines:::predict.bs(...).
Rui Barradas
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
______________________________________________
[email protected] 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.