Skip to content
Prev 75229 / 398502 Next

more on vector vs array

Nice one. But I think you could replace the last line (the one with
do.call) with the simpler

 w <- which( dat[ ,2] > dat[ ,3] )
 w
 [1]  6 11 13 14 16 18 20

 dat[ w, ]
    station temp.x temp.y
 6        b     18     16
 11       c     17     15
 13       d     16     14
 14       d     17     14
 16       d     17     14
 18       e     16     15
 20       e     19     15

Thank you.

Regards, Adai
On Tue, 2005-08-09 at 10:19 +0200, Dimitris Rizopoulos wrote: