Re: [Rd] Documentation examples for lm and glm

2018-12-17 Thread Heinz Tuechler
:r-devel-boun...@r-project.org] On Behalf Of Ben > Bolker > Sent: 13 December 2018 20:36 > To: r-devel@r-project.org > Subject: Re: [Rd] Documentation examples for lm and glm Agree. Or just create the data frame with those variables in it > directly ... On 2018-12-13 3:26 p.m.,

Re: [Rd] Documentation examples for lm and glm

2018-12-17 Thread Fox, John
variables lurking about, >>>>> but if those are the only variables out there and we can >>>>> be sure they aren't affected by other code, it's hardly >>>>> essential to create a data frame to hold something you >>>>> already have.

Re: [Rd] Documentation examples for lm and glm

2018-12-17 Thread Heinz Tuechler
en > Bolker > Sent: 13 December 2018 20:36 > To: r-devel@r-project.org > Subject: Re: [Rd] Documentation examples for lm and glm Agree. Or just create the data frame with those variables in it > directly ... On 2018-12-13 3:26 p.m., Thomas Yee wrote: > > Hello, something t

Re: [Rd] Documentation examples for lm and glm

2018-12-17 Thread Fox, John
Dear Steve, Since this relates as well to the message I posted a couple of minutes before yours, I agree that it’s possible to phrase “best practices” too categorically. In the current case, I believe that it’s reasonable to say that specifying the data argument is “generally” or “usually” the

Re: [Rd] Documentation examples for lm and glm

2018-12-17 Thread S Ellison
> From: Thomas Yee [mailto:t@auckland.ac.nz] > > Thanks for the discussion. I do feel quite strongly that > the variables should always be a part of a data frame. This seems pretty much a decision for R core, and I think it's useful to have raised the issue. But I, er, feel strongly that

Re: [Rd] Documentation examples for lm and glm

2018-12-17 Thread Fox, John
without >>> using with() a lot. lm() can reasonably omit the data >>> argument there, too. >>> >>> So while there are good reasons to use data frames, there >>> are also good reasons to provide examples that don't. >>> >>> Steve

Re: [Rd] Documentation examples for lm and glm

2018-12-17 Thread Martin Maechler
) can reasonably omit the data >> argument there, too. >> >> So while there are good reasons to use data frames, there >> are also good reasons to provide examples that don't. >> >> Steve Ellison >> >> >&

Re: [Rd] Documentation examples for lm and glm

2018-12-16 Thread Thomas Yee
without using with() a lot. lm() can reasonably omit the data argument there, too. So while there are good reasons to use data frames, there are also good reasons to provide examples that don't. Steve Ellison -Original Message- From: R-devel [mailto:r-devel-boun...@r-project.org] On

Re: [Rd] Documentation examples for lm and glm

2018-12-16 Thread Achim Zeileis
evel [mailto:r-devel-boun...@r-project.org] On Behalf Of Ben Bolker Sent: 13 December 2018 20:36 To: r-devel@r-project.org Subject: Re: [Rd] Documentation examples for lm and glm Agree. Or just create the data frame with those variables in it directly ... On 2018-12-13 3:26 p.m., Thomas Yee

Re: [Rd] Documentation examples for lm and glm

2018-12-15 Thread frederik
. lm() can reasonably omit the data argument there, too. So while there are good reasons to use data frames, there are also good reasons to provide examples that don't. Steve Ellison -Original Message- From: R-devel [mailto:r-devel-boun...@r-project.org] On Behalf Of Ben Bolker Sent:

Re: [Rd] Documentation examples for lm and glm

2018-12-15 Thread Achim Zeileis
l Message- From: R-devel [mailto:r-devel-boun...@r-project.org] On Behalf Of Ben Bolker Sent: 13 December 2018 20:36 To: r-devel@r-project.org Subject: Re: [Rd] Documentation examples for lm and glm Agree. Or just create the data frame with those variables in it directly ... On 2018-12

Re: [Rd] Documentation examples for lm and glm

2018-12-14 Thread David Hugh-Jones
good > reasons to provide examples that don't. > > Steve Ellison > > > > -Original Message- > > From: R-devel [mailto:r-devel-boun...@r-project.org] On Behalf Of Ben > > Bolker > > Sent: 13 December 2018 20:36 > > To: r-devel@r-project.org > &g

Re: [Rd] Documentation examples for lm and glm

2018-12-14 Thread S Ellison
on't. Steve Ellison > -Original Message- > From: R-devel [mailto:r-devel-boun...@r-project.org] On Behalf Of Ben > Bolker > Sent: 13 December 2018 20:36 > To: r-devel@r-project.org > Subject: Re: [Rd] Documentation examples for lm and glm > > > Agree. Or j

Re: [Rd] Documentation examples for lm and glm

2018-12-13 Thread Ben Bolker
Agree. Or just create the data frame with those variables in it directly ... On 2018-12-13 3:26 p.m., Thomas Yee wrote: > Hello, > > something that has been on my mind for a decade or two has > been the examples for lm() and glm(). They encourage poor style > because of mismanagement of data