[R] Sum with Conditions

jimdare jamesdare26 at gmail.com
Fri Jul 24 02:06:56 CEST 2009


Dear R-Users,

I have a huge data set (172,696 rows) that is set out in the following way:

Area | Length | Species | Method | Date | Events	

I want to sum the number of Events if:

Length < 28                                AND
Species is NOT "X" ,"Y", or "Z"       AND
Method is either "1" ,"2", or "3"       AND
Date is between 31/12/08 AND 1/02/09 (i.e. JAN 09) 

Is there an easy way to do this?

Your help is much appreciated.

James  

      
-- 
View this message in context: http://www.nabble.com/Sum-with-Conditions-tp24636551p24636551.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list