Re: [R] Changing ungrouped cases to grouped cases

2012-07-20 Thread Peter Ehlers
David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Christopher Desjardins Sent: Thursday, July 19, 2012 7:35 PM To:

Re: [R] Changing ungrouped cases to grouped cases

2012-07-20 Thread Rui Barradas
-- David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Christopher Desjardins Sent: Thurs

Re: [R] Changing ungrouped cases to grouped cases

2012-07-20 Thread Christopher Desjardins
-- >> David L Carlson >> Associate Professor of Anthropology >> Texas A&M University >> College Station, TX 77843-4352 >> >> > -Original Message- >> > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >> >

Re: [R] Changing ungrouped cases to grouped cases

2012-07-20 Thread Christopher Desjardins
] On Behalf Of Christopher Desjardins > > Sent: Thursday, July 19, 2012 7:35 PM > > To: R help > > Subject: [R] Changing ungrouped cases to grouped cases > > > > Hi, > > I have my data the following way: > > > > y A B C > > 0 11 2

Re: [R] Changing ungrouped cases to grouped cases

2012-07-20 Thread arun
v(order(y,A,B,C))),]  dat3   y A B C 2 2 1 1 2 1 1 1 2 1 3 0 1 2 2 A.K. - Original Message - From: Christopher Desjardins To: R help Cc: Sent: Thursday, July 19, 2012 8:34 PM Subject: [R] Changing ungrouped cases to grouped cases Hi, I have my data the following way: y    A  B 

Re: [R] Changing ungrouped cases to grouped cases

2012-07-19 Thread David L Carlson
p-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Christopher Desjardins > Sent: Thursday, July 19, 2012 7:35 PM > To: R help > Subject: [R] Changing ungrouped cases to grouped cases > > Hi, > I have my data the following way: > > y A B

[R] Changing ungrouped cases to grouped cases

2012-07-19 Thread Christopher Desjardins
Hi, I have my data the following way: y A B C 0 11 2 0 12 1 1 11 2 0 11 2 1 11 2 1 12 1 0 12 2 . . . And so on. How can I make my data look like the following: y A B C 2 1 1 2 1 1 2 1 0 1 2 2 . . .