Re: [R] Sum with Conditions

2009-07-23 Thread jimdare
ngliche Nachricht- > Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im > Auftrag von jimdare > Gesendet: Thursday, July 23, 2009 8:07 PM > An: r-help@r-project.org > Betreff: [R] Sum with Conditions > > > Dear R-Users, > > I have a huge dat

Re: [R] Sum with Conditions

2009-07-23 Thread Daniel Malter
uly 23, 2009 8:07 PM An: r-help@r-project.org Betreff: [R] Sum with Conditions 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

[R] Sum with Conditions

2009-07-23 Thread jimdare
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 < 28AND Species is NOT "X" ,"Y", or "Z" AND Method is either "1