Hi all, 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 R.1.0. Gilles -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Sat, 24 Jun 2000, Gilles Gignac wrote:>Hi all, > >I am a beginner to R, so you have a right to dislike me.Everyone starts as a newbie! :-) I'm not too experienced myself, but I'll try an answer.>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 >R.1.0.Hm, one would have to have a closer look at your functions to figure out this one. I guess that the function ncol() is called somewhere inside your program and it has an argument called 'hitdat', that it can't find. I'd guess that you were supposed to provide some data to the the maxcov-hitmax program that didn't go where they were supposed to... Perhaps someone else might have a better answer, or you might have to supply more details on the function you're using. Best, Kjetil -- Kjetil Kjernsmo Graduate astronomy-student Problems worthy of attack University of Oslo, Norway Prove their worth by hitting back E-mail: kjetikj at astro.uio.no - Piet Hein Homepage <URL:http://www.astro.uio.no/~kjetikj/> Webmaster at skepsis.no -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Gilles Gignac wrote:> > Hi all, > > 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 > R.1.0.I don't know anything about the function you are using, so I only can guess: Are you sure you passed the right (and required) arguments to that function? Regards, Uwe Ligges p.s.: The latest R is R-1.1.0, the latest two versions before: R-1.0.0 and R-1.0.1. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>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 >R.1.0. > >GillesYou 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 "bombs." 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. Jon Baron -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Sat, 24 Jun 2000, Gilles Gignac wrote:> 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 > R.1.0.Gilles: I will hazard a guess that you are using MAXCOV code provided by Neils Waller and Paul Meehl. I think you want to pass your matrix to the function "MAXCOV.prg". I think you may have used another function that is not meant to be called directly by the user in most cases. . Also, be careful with your 28 column data matrix since MAXCOV.prg will produce many pages of plots for a matrix tthathsize.at size. hope this helps, Chuck mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm Assistant Professor Dept. of Pediatrics UMDNJ--Rober Wood Johnson Medical School 97 Patterson St. New Brunswick, NJ 08903 (732)2 2 235-7699 mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._