Skip to content
Prev 24381 / 398502 Next

data.frame bug?

On Thu, 17 Oct 2002, Chong Gu wrote:

            
If your computer does what mine does then this isn't what gives an error
message. The error message comes when you print.
Error in data.frame(x1 = "2", x2 = c("0", "0"), check.names = FALSE,
row.names = "1") :
        row.names should specify one of the variables
[1] 2
[,1] [,2]
[1,]    0    0

and it's caused in format.data.frame by the fact that format(jk[[2]]) is a
vector, not a matrix.

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._