[Rd] lm.{w}fit(x,y,*) : fails when x has no column names (PR#582)
maechler@stat.math.ethz.ch
maechler@stat.math.ethz.ch
Mon, 26 Jun 2000 15:50:44 +0200 (MET DST)
(and bug.report() with vanilla setting is *REALLY* horrible inside ESS ... !)
> X <- matrix(rnorm(10),5,2)
> y <- rnorm(5)
> w <- rnorm(5)^2
> lm.fit (x=X, y=y) ##-> error
Error in names<-.default(*tmp*, value = c("", "", "")) :
names attribute must be the same length as the vector
> lm.wfit(x=X, y=y, w=w) ##-> error
Error in names<-.default(*tmp*, value = c("", "", "")) :
names attribute must be the same length as the vector
>
--
Now, since help(lm.fit) and help(lm.wfit) really do not contain any
information on these, one could argue that the above is not a bug.
However as build blocks for programming (many regressions),
these functions *should* work reasonably generally.
(I'm trying to fix this bug myself).
Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._