Displaying 1 result from an estimated 1 matches for "tp4643282".
2012 Sep 16
5
Count based on 2 conditions [Beginner Question]
...erent values or columns.
count=0
for (i in 1:1000) { if(dataset[i,2]>5 && ind[i,1]==1) { count=count+1}}
I'm looking for a more efficient/elegant way to do this!
Thanks!
--
View this message in context: http://r.789695.n4.nabble.com/Count-based-on-2-conditions-Beginner-Question-tp4643282.html
Sent from the R help mailing list archive at Nabble.com.