Re: [R] row index for max values of row groups

2012-11-08 Thread Omphalodes Verna
Thansk for help to all.   OV From: William Dunlap Cc: R help ; Omphalodes Verna Sent: Wednesday, November 7, 2012 8:38 PM Subject: RE: [R] row index for max values of row groups Note that the unlist(tapply()) algorithm depends on the groups column being

Re: [R] row index for max values of row groups

2012-11-07 Thread William Dunlap
boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Rui Barradas > Sent: Wednesday, November 07, 2012 11:13 AM > To: arun > Cc: R help; Omphalodes Verna > Subject: Re: [R] row index for max values of row groups > > Hello, > > Though my function is

Re: [R] row index for max values of row groups

2012-11-07 Thread Rui Barradas
rom: Omphalodes Verna To: "r-help@r-project.org" Cc: Sent: Wednesday, November 7, 2012 1:41 PM Subject: [R] row index for max values of row groups Dear list members! I am looking for ''nice solution'' for (maybe) simple problem. I need a code (small program) to calcu

Re: [R] row index for max values of row groups

2012-11-07 Thread arun
- Original Message - From: Omphalodes Verna To: "r-help@r-project.org" Cc: Sent: Wednesday, November 7, 2012 1:41 PM Subject: [R] row index for max values of row groups Dear list members! I am looking for ''nice solution'' for (maybe) simple problem

[R] row index for max values of row groups

2012-11-07 Thread Omphalodes Verna
Dear list members! I am looking for ''nice solution'' for (maybe) simple problem. I need a code (small program) to calculate row index for max value (example below: df1$values) by groups (example below: df1$groups). df1 <- data.frame( groups = c(1,1,1,1,1,2,2,2,3,3,3,3), values = c(1,1,1,2,1,1,2,