search for: t3all

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

Did you mean: t1all
2010 Mar 05
2
Selecting rows of a matrix based on some condition on the columns
....00 0 31.07 31.63 37.51 0.00 39.34 34.91 35.51 0.00 [5,] 25 0.00 0 0.00 36.11 34.24 0.00 34.07 32.72 0.00 0.00 [6,] 9 33.63 0 38.43 0.00 35.72 32.95 36.40 38.57 34.19 32.47 [7,] 87 35.22 0 0.00 35.31 0.00 0.00 34.55 35.14 38.12 0.00 For three T's and three C's, I got > t3all <- apply(xy,1,function(x) any(( (x[2]>0&x[3]>0&x[4]>0)| + (x[2]>0&x[3]>0&x[5]>0)|(x[2]>0&x[3]>0&x[6]>0)|(x[2]>0&x[4]>0&x[5]>0)| + (x[2]>0&x[4]>0&x[6])|(x[2]>0&x[5]>0&x[6]>0)| + (x[3]>0&x[4]&...