Count observations greater than a particular value [duplicate]

Try using logical test and then sum over the values meeting the condition

sum(output$V4 > 2000)

Leave a Comment