[R] does there any function like sumif in excel?
    Celine 
    bellard.celine at gmail.com
       
    Wed Nov  2 14:06:33 CET 2011
    
    
  
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 : 
CELLCD AreaProtected    SumAreaProtected 
   8928      52.39389      94.309 
   8928      41.91511 
   8929      21.21975      84,879 
   8929      63.65925 
   8930      26.08547 
   8930      14.04602 
I am just started with R and I don't know how I can do that. 
Do you have any ideas ? 
--
View this message in context: http://r.789695.n4.nabble.com/does-there-any-function-like-sumif-in-excel-tp858444p3972963.html
Sent from the R help mailing list archive at Nabble.com.
    
    
More information about the R-help
mailing list