Re: [R] Arguments to lm() within a function - object not found

2008-08-13 Thread Pete Berlin
Thanks very much for the quick reply. I had looked at the help for lm, but I clearly skimmed over the critical part explaining where weights is evaluated. Thanks, Pete On 13/8/2008, Prof Brian Ripley wrote: >On Wed, 13 Aug 2008, Pete Berlin wrote: > >> Hi all, >> >> I'm having some difficulty

Re: [R] Arguments to lm() within a function - object not found

2008-08-13 Thread Prof Brian Ripley
On Wed, 13 Aug 2008, Pete Berlin wrote: Hi all, I'm having some difficulty passing arguments into lm() from within a function, and I was hoping someone wiser in the ways of R could tell me what I'm doing wrong. I have the following: lmwrap <- function(...) { wts <- somefunction() print(wts)

[R] Arguments to lm() within a function - object not found

2008-08-13 Thread Pete Berlin
Hi all, I'm having some difficulty passing arguments into lm() from within a function, and I was hoping someone wiser in the ways of R could tell me what I'm doing wrong. I have the following: lmwrap <- function(...) { wts <- somefunction() print(wts) # This works, wts has the values I expec

[R] Arguments to lm() within a function - object not found

2008-08-13 Thread Pete Berlin
Hi all, I'm having some difficulty passing arguments into lm() from within a function, and I was hoping someone wiser in the ways of R could tell me what I'm doing wrong. I have the following: lmwrap <- function(...) { wts <- somefunction() print(wts) # This works, wts has the values I expec