Re: [R] does there any function like sumif in excel?

2011-11-03 Thread Celine
Sorry for the duplicates message and thanks for your help, it works well now. Céline -- View this message in context: http://r.789695.n4.nabble.com/does-there-any-function-like-sumif-in-excel-tp858444p3984899.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] does there any function like sumif in excel?

2011-11-02 Thread David Winsemius
On Nov 2, 2011, at 9:06 AM, Celine wrote: I have a similar problem 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 AreaProtected if it is the same CEL

Re: [R] does there any function like sumif in excel?

2011-11-02 Thread Celine
I have a similar problem 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 AreaProtected if it is the same CELLCD in another column : CELLC

Re: [R] does there any function like sumif in excel?

2008-09-29 Thread John Kane
EMAIL PROTECTED]> > Subject: [R] does there any function like sumif in excel? > To: R-help@r-project.org > Received: Sunday, September 28, 2008, 10:25 PM > I have a data.frame datas which have two columns A and B. > I want to filter column A by some values and to get a value >

Re: [R] does there any function like sumif in excel?

2008-09-28 Thread jim holtman
yourData$B[yourData$A == someValue] On Sun, Sep 28, 2008 at 10:25 PM, caocheng曹成 <[EMAIL PROTECTED]> wrote: > I have a data.frame datas which have two columns A and B. > I want to filter column A by some values and to get a value list which > contain the value in B. > Best wishes! > >[[alt

Re: [R] does there any function like sumif in excel?

2008-09-28 Thread Daniel Nordlund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of caocheng?? > Sent: Sunday, September 28, 2008 7:26 PM > To: R-help@r-project.org > Subject: [R] does there any function like sumif in excel? > > I have a data.frame datas which

[R] does there any function like sumif in excel?

2008-09-28 Thread caocheng曹成
I have a data.frame datas which have two columns A and B. I want to filter column A by some values and to get a value list which contain the value in B. Best wishes! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https