R-alpha: abline not recognized coef member of list

Nobuhiro Yasutomi nobu@psrc.isac.co.jp
Sun, 04 May 1997 17:27:10 +0900


Hello, R developers.

  I found a little different behavior of R with S.

  at R-0.49:
    > a
    [1] 12 23 22 34 44 54 55 70 78
    > plot(a)
    > abline(lsfit(seq(1,len=length(a)), a))
    Error: no applicable method for "coefficients"

  at S (from AT&T '92) result draw coefficient line without error.
Then I think to need define a function as followed:

    coefficients.default <- function(x) x$coef

---
Nobuhiro Yasutomi, ISAC, Inc.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-