> > > >without having to check the vector element by element? Thanks a lot!
which.max() will coerce the logical to numeric and give the location of the first max, which is the first TRUE. J.R. Lockwood 412-683-2300 x4941 [EMAIL PROTECTED] http://www.rand.org/methodology/stat/members/lockwood/ ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help