Re: [R] Summing data based on certain conditions

2010-04-02 Thread David Winsemius
Date: Wed, 31 Mar 2010 23:31:25 +0200 From: stephan.kola...@gmx.de To: smurray...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] Summing data based on certain conditions ?by may also be helpful. Stephan Steve Murray schrieb: Dear all, I have a dataset of 1073 rows, the first 1

Re: [R] Summing data based on certain conditions

2010-04-02 Thread Phil Spector
1073 Maybe the approach I'm taking is wrong. Any suggestions would be gratefully received. Many thanks, Steve Date: Wed, 31 Mar 2010 23:31:25 +0200 From: stephan.kola...@gmx.de To: smurray...@hotmail.com CC: r-help@r-project.org Subject: Re: [R

Re: [R] Summing data based on certain conditions

2010-04-02 Thread ONKELINX, Thierry
project.org > [mailto:r-help-boun...@r-project.org] Namens Steve Murray > Verzonden: vrijdag 2 april 2010 16:37 > Aan: stephan.kola...@gmx.de; gunter.ber...@gene.com > CC: r-help@r-project.org > Onderwerp: Re: [R] Summing data based on certain conditions > > > Dear all, &g

Re: [R] Summing data based on certain conditions

2010-04-02 Thread Steve Murray
1073 Maybe the approach I'm taking is wrong. Any suggestions would be gratefully received. Many thanks, Steve > Date: Wed, 31 Mar 2010 23:31:25 +0200 > From: stephan.kola...@gmx.de > To: smurray...@hotmail.com > CC: r-help@r-proje

Re: [R] Summing data based on certain conditions

2010-03-31 Thread Law, Jason
org] On Behalf Of Stephan Kolassa Sent: Wednesday, March 31, 2010 2:31 PM To: Steve Murray Cc: r-help@r-project.org Subject: Re: [R] Summing data based on certain conditions ?by may also be helpful. Stephan Steve Murray schrieb: > Dear all, > > I have a dataset of 1073 rows, the first 1

Re: [R] Summing data based on certain conditions

2010-03-31 Thread Stephan Kolassa
?by may also be helpful. Stephan Steve Murray schrieb: Dear all, I have a dataset of 1073 rows, the first 15 which look as follows: data[1:15,] date year month day rammday thmmday 1 3/8/1988 1988 3 81.430.94 2 3/15/1988 1988 3 152.860.66 3 3/22/1988 1

Re: [R] Summing data based on certain conditions

2010-03-31 Thread Bert Gunter
?ave or ?tapply Bert Gunter Genentech Nonclinical Biostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Steve Murray Sent: Wednesday, March 31, 2010 10:20 AM To: r-help@r-project.org Subject: [R] Summing data based on

[R] Summing data based on certain conditions

2010-03-31 Thread Steve Murray
Dear all, I have a dataset of 1073 rows, the first 15 which look as follows: > data[1:15,]     date year month day rammday thmmday 1   3/8/1988 1988 3   8    1.43    0.94 2  3/15/1988 1988 3  15    2.86    0.66 3  3/22/1988 1988 3  22    5.06    3.43 4  3/29/1988 1988 3  29