Skip to content
Prev 305615 / 398506 Next

Count based on 2 conditions [Beginner Question]

On Sep 16, 2012, at 3:41 AM, SirRon wrote:

            
I see others have given you a solution using the vectorized sum function. I would have reached for 'table' and done it thusly:

table( one=dataset[,1], GT5=dataset[ , 2] > 5 )