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
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
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
- 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
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,
5 matches
Mail list logo