Re: [R] Sum with condition

2011-11-03 Thread Celine
Problem solved, thanks everyone for your help. Céline -- View this message in context: http://r.789695.n4.nabble.com/Sum-with-condition-tp3972839p3984909.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing li

Re: [R] Sum with condition

2011-11-02 Thread S Ellison
149 Maybe one of those is what you want? > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Celine > Sent: 02 November 2011 12:44 > To: r-help@r-project.org > Subject: [R] Sum with condition > > I gue

Re: [R] Sum with condition

2011-11-02 Thread David Winsemius
On Nov 2, 2011, at 2:11 PM, Sarah Goslee wrote: Hi, On Wed, Nov 2, 2011 at 8:44 AM, Celine wrote: Celine. Please stop posting duplicates. CELLCD AreaProtected 8928 52.39389 8928 41.91511 8929 21.21975 8929 63.65925 8930 26.08547 8930 14.04602 You'l

Re: [R] Sum with condition

2011-11-02 Thread Sarah Goslee
Hi, On Wed, Nov 2, 2011 at 8:44 AM, Celine wrote: > CELLCD AreaProtected >   8928      52.39389 >   8928      41.91511 >   8929      21.21975 >   8929      63.65925 >   8930      26.08547 >   8930      14.04602 You'll need to figure out how you want it to be combined with the original data frame

[R] Sum with condition

2011-11-02 Thread Celine
I guess my problem is simple for most of you but I am new with R and I need some help, I have a dataframe : CELLCD AreaProtected 8928 52.39389 8928 41.91511 8929 21.21975 8929 63.65925 8930 26.08547 8930 14.04602 I wouldlike to sum the AreaProtecte