baron at cattell.psych.upenn.edu
Sat Jun 24 18:58:48 CEST 2000
>I am a beginner to R, so you have a right to dislike me. I have loaded
>up a data matrix (664 * 28) into the R environment and wish to have a
>pre-written program (MAXCOV-HITMAX) analyse the data. When I run the
>program, I get: "Error in ncol(hitdat). Argument "hitdat" is missing
>with no default"; I can't seem to find much info in the manuals, etc. to
>help me out, so any suggestions will be appreciated greatly. I am using
You don't give much information, but I run into this sort of
problem all the time, and here are a few tricks:
1. I assume you submit the program by saying
source("MAXCOV-HITMAX"). Try source("MAXCOV-HITMAX",echo=T)
instead, and then you can see how far it gets and where it
2. Similarly, type ls() to see what objects have been created.
Probably hitdat isn't there, or you missspelled it, or something.
3. If hitdat is the data themselves, check how you read the data
in. Try to do it by hand instead of with a batch file.
4. If hitdat is derived from other objects, see if they exist by
typing their names.
I find the most common problem is assuming the wring type of
object (data frame vs. matrix, for example). Check the help
files to see what is required.
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