[Rd] lm documentation, "formula" component (PR#1105)

david.firth@nuf.ox.ac.uk david.firth@nuf.ox.ac.uk
Mon, 1 Oct 2001 15:13:02 +0200 (MET DST)


Full_Name: David Firth
Version: 1.3.1
OS: linux and others
Submission from: (NULL) (163.1.103.121)


help(lm)

says that

  An object of class `"lm"' is a list containing at least the
     following components:

  ...

  formula: the formula supplied.


But is the "formula" component necessarily present?

An example:
> x<-rnorm(10)
> y<-rnorm(10)
> temp<-lm(y~x)
> names(temp)
 [1] "coefficients"  "residuals"     "effects"       "rank"         
 [5] "fitted.values" "assign"        "qr"            "df.residual"  
 [9] "xlevels"       "call"          "terms"         "model"
> temp$formula
NULL



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._