Re: [Rd] Documentation examples for lm and glm

2018-12-15 Thread frederik
I agree with Steve and Achim that we should keep some examples with no data frame. That's Objectively Simpler, whether or not it leads to clutter in the wrong hands. As Steve points out, we have attach() which is an excellent language feature - not to mention with(). I would go even further and s

Re: [Rd] Documentation examples for lm and glm

2018-12-15 Thread Achim Zeileis
A pragmatic solution could be to create a simple linear regression example with variables in the global environment and then another example with a data.frame. The latter might be somewhat more complex, e.g., with several regressors and/or mixed categorical and numeric covariates to illustrate