[R] length of dimnames???

Thomas Lumley tlumley at u.washington.edu
Fri Jan 18 17:55:30 CET 2002


On Fri, 18 Jan 2002, Jean-Pierre Gattuso wrote:

<snip>
> 	Error in as.matrix.data.frame(x) : length of dimnames[2] not
> equal to array extent
>
<snip>
> Any idea?

My first guess would be that frame1 no longer has all its columns the same
length. You might need match(,all=TRUE) or something.

If this isn't the case you can do
   debug(as.matrix.data.frame)
and then see what is getting passed to the function [use
undebug(as.matrix.data.frame) to turn off debugging]

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list