Skip to content
Prev 267598 / 398502 Next

Odp: Counting rows given conditional

Hi

r-help-bounces at r-project.org napsal dne 04.08.2011 14:56:09:
You are quite close. 
x$TR>=1
gives you logical vector TRUE/FALSE. You can compute count of TRUE values 
by
sum(logical.vector) e.g.
sum(x$TR>=1)

Regards
Petr
http://r.789695.n4.nabble.com/Counting-rows-
http://www.R-project.org/posting-guide.html