search for: col2greaterthan5

Displaying 1 result from an estimated 1 matches for "col2greaterthan5".

2012 Sep 16
5
Count based on 2 conditions [Beginner Question]
Hello, I'm working with a dataset that has 2 columns and 1000 entries. Column 1 has either value 0 or 1, column 2 has values between 0 and 10. I would like to count how often Column 1 has the value 1, while Column 2 has a value greater 5. This is my attempt, which works but doesn't seem to be very efficient, especially when testing different values or columns. count=0 for (i in 1:1000) {