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