Thanks a lot to Thomas Lumley, Peter Dalgaard, and Luke Tierney for their
answers.
I think I understand why the function failed, and the workaorunds. However,
would it be appropriate if a call such as:
my.function <- function(formula, data){
# other stuff
lm(formula = formula, data = data, weights = data$x2)
}
my.function(formula, datai)
where to return an error, instead of simply ignoring the weights=data$x2
argument? (especially since such a thing used to work and might be used in
other code)
Ramon
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._