[R] Help with an error message

naw3 at duke.edu naw3 at duke.edu
Mon Jul 14 17:49:24 CEST 2008


Hi,

I am writing a very long program that deals with multiple large databases which
often have missing data cells and other quirks. I've been testing it on small
samples of the data so it doesn't take too long, but when I tried it using the
real files, it ran for about a minute and then gave me this error message:

Error in matrix(unlist(value, recursive = FALSE, use.names = FALSE), nrow = nr, 
:
  length of 'dimnames' [2] not equal to array extent

I'm very new at R/computer science, so I have no clue what it means and I would
greatly appreciate any info about why this is coming up and how to fix it. Is
there a way to get R to tell me at which line it is encountering the problem?
Also, what kinds of executions in my code could cause this problem? What should
I be looking for in order to fix this?

Thanks,
-Nina



More information about the R-help mailing list