On Fri, Sep 24, 2010 at 6:25 PM, Murray Jorgensen <[email protected]> wrote:

> When will I ever learn to proof-read my emails?!
> =============
> I think what Greg sayS here is the "official wisdom" and it leads to more
> future-proofED code as the structure of various objects can change in new
> versions of R.
>
>
> OTOH the structure of a kind of object can always be explored with str(),
> but it may not be easy to find out what extractor functions are available
> for the object.
>
>
Try this using builtin data.frame, BOD, to find methods can be applied to
fm:

fm <- lm(demand ~ Time, BOD)
methods(class = class(fm))

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

        [[alternative HTML version deleted]]

_______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-teaching

Reply via email to