Re: [Rd] formula(CO2)

From: Kevin Wright <kw.statr_at_gmail.com>
Date: Tue, 17 Jul 2007 10:14:47 -0500

About a month ago I had a similar issue related to 'formula': http://tolstoy.newcastle.edu.au/R/e2/devel/07/05/3329.html

In summary:

In S-Plus, the help for formula.data.frame says: This is a method for the function formula() for objects inheriting from class data.frame. If object is a model frame, the formula for the model frame is returned, otherwise a formula is deduced from the names of object. The first name is taken to be the response, and all the remaining names are pasted together additively.

In R, the help for formula.data.frame is aliased to the help for formula, but does not clearly document the usage with data.frames.

Kevin

On 7/16/07, Gabor Grothendieck <ggrothendieck_at_gmail.com> wrote:
> The formula attribute of the builtin CO2 dataset seems a bit strange:
>
> > formula(CO2)
> Plant ~ Type + Treatment + conc + uptake
>
> What is one supposed to do with that? Certainly its not suitable for
> input to lm and none of the examples in ?CO2 use the above.
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 17 Jul 2007 - 16:32:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jul 2007 - 18:36:44 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.