Skip to content
Prev 21803 / 63424 Next

lm, weights and ...

If you change it to:

lm3 <- function(...) eval.parent(substitute(lm(...)))

then it works.
Call:
lm(formula = mpg ~ wt, data = mtcars, weights = cyl)

Coefficients:
(Intercept)           wt
      35.50        -4.91
On 9/3/06, hadley wickham <h.wickham at gmail.com> wrote: