On 04/04/2013 07:54 AM, Adams, Jean wrote:
Peter.

For suggestion 1, what advantages are there to using coef() rather than
$coef?

Just thought I'd chip in:  It is considered, uh, politically correct to use
extractor functions rather than digging out components of objects
in a "direct" manner.  The purported advantage of this is that it is
robust against package changes which could restructure the object
in question, which would break direct extraction but would (presumably)
have no deleterious consequences for the use of extractor functions.

    cheers,

        Rolf Turner

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to