From david.firth@nuf.ox.ac.uk  Mon Oct  1 14:13:02 2001
From: david.firth@nuf.ox.ac.uk (david.firth@nuf.ox.ac.uk)
Date: Mon, 1 Oct 2001 15:13:02 +0200 (MET DST)
Subject: [Rd] lm documentation, "formula" component (PR#1105)
Message-ID: <200110011313.PAA15514@pubhealth.ku.dk>

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


[Rd] lm documentation, "formula" component (PR#1105)
david.firth@nuf.ox.ac.uk