Re: [R] Ambiguities in vector

2007-10-08 Thread Gavin Simpson
On Mon, 2007-10-08 at 15:35 +0200, Birgit Lemcke wrote: > Hello James, > > all of your suggestions work very well except of this: > > FemMal <- cbind(FemV1gezählt[2,], MalV1gezählt[2,]) > > colnames(FemMal) <- ("Females", "Males") > Fehler: syntax error The OP missed out c() above, hence the sy

Re: [R] Ambiguities in vector

2007-10-08 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 08.10.2007 15:35:01: > Hello James, > > all of your suggestions work very well except of this: > > FemMal <- cbind(FemV1gezählt[2,], MalV1gezählt[2,]) > > colnames(FemMal) <- ("Females", "Males") > Fehler: syntax error Syntax error means something is missing an

Re: [R] Ambiguities in vector

2007-10-08 Thread Birgit Lemcke
Hello James, all of your suggestions work very well except of this: FemMal <- cbind(FemV1gezählt[2,], MalV1gezählt[2,]) colnames(FemMal) <- ("Females", "Males") Fehler: syntax error FeMMal [,1] [ ,2] 1 133 79 2 203 237 3 51 76 But it works if I do that: Namen<-c("Female","Mal

Re: [R] Ambiguities in vector

2007-10-01 Thread Birgit Lemcke
Hello James, first I have to thank you for your help but there are some things I don´t understand now. I am not sur if I understand what this example gives me back: ratings <- data.frame(id = c(1,2,3,4), att1 = c(1,1,0,1), att2 = c (1,0,0,1), att3 = c(0,1,1,1)) ratings id att1 att2 att3

Re: [R] Ambiguities in vector

2007-09-21 Thread Birgit Lemcke
First of all thanks a lot for your answer. Now I will try to realize your suggestion. Greetings B Am 21.09.2007 um 11:38 schrieb James Reilly: > > If I understand you right, you have several multiple response > variables (with the responses encoded in numeric strings) and you > want to se

Re: [R] Ambiguities in vector

2007-09-21 Thread James Reilly
If I understand you right, you have several multiple response variables (with the responses encoded in numeric strings) and you want to see whether these are associated with sex. To tabulate the data, I would convert your variables into collections of dummy variables using regexpr(), then use

Re: [R] Ambiguities in vector

2007-09-20 Thread Birgit Lemcke
First thanks for your answer. Now I try to explain better: I have species in the rows and morphological attributes in the columns coded by numbers (qualitative variables; nominal and ordinal). In one table for the male plants of every species and in the other table for the female plants of eve

Re: [R] Ambiguities in vector

2007-09-20 Thread bbolker
Birgit Lemcke wrote: > > > Perhaps you haven´t understood my question in the mail yesterday. So > I will try to describe my problem in a different way > > You see the tables. I would like to test the variables between the > tables. > I'm afraid that even before we start to deal with th

[R] Ambiguities in vector

2007-09-20 Thread Birgit Lemcke
Hello all you helpful people out there! I am stil R Beginner using R 2.5.1 on a Apple Power Book G4 with Mac OS X 10.4.10 . Perhaps you haven´t understood my question in the mail yesterday. So I will try to describe my problem in a different way You see the tables. I would like to test the var